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 <38270282+alexr00@users.noreply.github.com>
* Use explicit mergeable state check for GraphQL branch update
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add validation for head SHA and clarify handling of all mergeable states
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Show update branch button when PR is not checked out (no conflicts)
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Check for conflicts in isUpdateBranchWithGitHubEnabled
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Revert proposed changes
* Pull local branch after GraphQL update when PR is checked out
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Only pull after GraphQL update, not after REST API conflict resolution
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Clean up
* Revert api files
* Update string
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
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