We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f4fd0e commit dd547f8Copy full SHA for dd547f8
1 file changed
src/github/pullRequestModel.ts
@@ -1220,8 +1220,17 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
1220
});
1221
1222
if (data?.updateIssue?.issue) {
1223
- // Update the local base branch reference
1224
- this.base.ref = newBaseBranch;
+ // Update the local base branch reference by creating a new GitHubRef instance
+ 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
+ );
1234
this._onDidChange.fire({ base: true });
1235
}
1236
Logger.debug(`Updating base branch to ${newBaseBranch} - done`, PullRequestModel.ID);
0 commit comments