File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export interface IssueChangeEvent {
4141
4242 draft ?: true ;
4343 reviewers ?: true ;
44+ base ?: true ;
4445}
4546
4647export class IssueModel < TItem extends Issue = Issue > extends Disposable {
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ import {
4141 SubmitReviewResponse ,
4242 TimelineEventsResponse ,
4343 UnresolveReviewThreadResponse ,
44+ UpdateIssueResponse ,
4445} from './graphql' ;
4546import {
4647 AccountType ,
@@ -1208,7 +1209,7 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
12081209 try {
12091210 const { mutate, schema } = await this . githubRepository . ensure ( ) ;
12101211
1211- const { data } = await mutate ( {
1212+ const { data } = await mutate < UpdateIssueResponse > ( {
12121213 mutation : schema . UpdatePullRequest ,
12131214 variables : {
12141215 input : {
@@ -1220,7 +1221,7 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
12201221
12211222 if ( data ?. updateIssue ?. issue ) {
12221223 // Update the local base branch reference
1223- this . base . name = newBaseBranch ;
1224+ this . base . ref = newBaseBranch ;
12241225 this . _onDidChange . fire ( { base : true } ) ;
12251226 }
12261227 Logger . debug ( `Updating base branch to ${ newBaseBranch } - done` , PullRequestModel . ID ) ;
You can’t perform that action at this time.
0 commit comments