You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use GraphQL UpdatePullRequestBranch mutation for conflict-free branch updates (#8419)
* Initial plan
* Use GraphQL UpdatePullRequestBranch mutation when there are no conflicts
Co-authored-by: alexr00 <[email protected]>
* Use explicit mergeable state check for GraphQL branch update
Co-authored-by: alexr00 <[email protected]>
* Add validation for head SHA and clarify handling of all mergeable states
Co-authored-by: alexr00 <[email protected]>
* Show update branch button when PR is not checked out (no conflicts)
Co-authored-by: alexr00 <[email protected]>
* Check for conflicts in isUpdateBranchWithGitHubEnabled
Co-authored-by: alexr00 <[email protected]>
* Revert proposed changes
* Pull local branch after GraphQL update when PR is checked out
Co-authored-by: alexr00 <[email protected]>
* Only pull after GraphQL update, not after REST API conflict resolution
Co-authored-by: alexr00 <[email protected]>
* Clean up
* Revert api files
* Update string
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: alexr00 <[email protected]>
awaitvscode.window.showErrorMessage(vscode.l10n.t('The pull request branch cannot be updated when the there changed files in the working tree or index. Stash or commit all change and then try again.'),{modal: true});
awaitvscode.window.showErrorMessage(vscode.l10n.t('The pull request branch cannot be updated when the there changed files in the working tree or index. Stash or commit all change and then try again.'),{modal: true});
172
+
// Working tree/index checks only apply when the PR is checked out
awaitvscode.window.showErrorMessage(vscode.l10n.t('The pull request branch cannot be updated when there are changed files in the working tree or index. Stash or commit all change and then try again.'),{modal: true});
0 commit comments