File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1220,8 +1220,17 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
12201220 } ) ;
12211221
12221222 if ( data ?. updateIssue ?. issue ) {
1223- // Update the local base branch reference
1224- this . base . ref = newBaseBranch ;
1223+ // Update the local base branch reference by creating a new GitHubRef instance
1224+ const cloneUrl = this . base . repositoryCloneUrl . toString ( ) || '' ;
1225+ this . base = new GitHubRef (
1226+ newBaseBranch ,
1227+ `${ this . base . owner } :${ newBaseBranch } ` ,
1228+ this . base . sha ,
1229+ cloneUrl ,
1230+ this . base . owner ,
1231+ this . base . name ,
1232+ this . base . isInOrganization
1233+ ) ;
12251234 this . _onDidChange . fire ( { base : true } ) ;
12261235 }
12271236 Logger . debug ( `Updating base branch to ${ newBaseBranch } - done` , PullRequestModel . ID ) ;
You can’t perform that action at this time.
0 commit comments