Commit 682a3bc
Add GitHub API fallback for HEAD branch in getLocalPullRequests
When a PR is created on the GitHub website (not via VS Code UI), the
local branch has no git config metadata (branch.<name>.github-pr-owner-number)
since associateBranchWithPullRequest was never called.
For the current HEAD branch, if it has an upstream but no PR metadata,
query GitHub via getMatchingPullRequestMetadataFromGitHub() and write
the git config metadata via associateBranchWithPullRequest(). This is a
single API call that makes the local PR tree immediately correct.
Agent-Logs-Url: https://github.com/microsoft/vscode-pull-request-github/sessions/001ddef0-6d36-4dcc-96f7-ed3f3d2901e5
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent f327253 commit 682a3bc
1 file changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
967 | 995 | | |
968 | 996 | | |
969 | 997 | | |
| |||
0 commit comments