File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
1717 ITeam ,
1818 MergeMethod ,
1919 MergeMethodsAvailability ,
20+ PullRequestMergeability ,
2021 ReviewEventEnum ,
2122 ReviewState ,
2223} from './interface' ;
@@ -221,7 +222,11 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
221222
222223 private isUpdateBranchWithGitHubEnabled ( ) : boolean {
223224 // With the GraphQL UpdatePullRequestBranch API, we can update branches even when not checked out
224- // (as long as there are no conflicts). The conflict check is done in updateBranch().
225+ // (as long as there are no conflicts). If there are conflicts, we need the branch to be checked out.
226+ const hasConflicts = this . _item . item . mergeable === PullRequestMergeability . Conflict ;
227+ if ( hasConflicts ) {
228+ return this . _item . isActive ;
229+ }
225230 return true ;
226231 }
227232
You can’t perform that action at this time.
0 commit comments