File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -830,7 +830,7 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
830830 if ( selectedBranch ) {
831831 try {
832832 await this . _item . updateBaseBranch ( selectedBranch ) ;
833- await this . _replyMessage ( message , { } ) ;
833+ await this . _replyMessage ( message , { base : selectedBranch } ) ;
834834 } catch ( e ) {
835835 Logger . error ( formatError ( e ) , PullRequestOverviewPanel . ID ) ;
836836 vscode . window . showErrorMessage ( vscode . l10n . t ( 'Changing base branch failed. {0}' , formatError ( e ) ) ) ;
Original file line number Diff line number Diff line change @@ -92,7 +92,12 @@ export class PRContext {
9292 public readyForReviewAndMerge = ( args : { mergeMethod : MergeMethod } ) : Promise < ReadyForReview > => this . postMessage ( { command : 'pr.readyForReviewAndMerge' , args } ) ;
9393
9494 public addReviewers = ( ) => this . postMessage ( { command : 'pr.change-reviewers' } ) ;
95- public changeBaseBranch = ( ) => this . postMessage ( { command : 'pr.change-base-branch' } ) ;
95+ public changeBaseBranch = async ( ) => {
96+ const result = await this . postMessage ( { command : 'pr.change-base-branch' } ) ;
97+ if ( result ?. base ) {
98+ this . updatePR ( { base : result . base } ) ;
99+ }
100+ } ;
96101 public changeProjects = ( ) : Promise < ProjectItemsReply > => this . postMessage ( { command : 'pr.change-projects' } ) ;
97102 public removeProject = ( project : IProjectItem ) => this . postMessage ( { command : 'pr.remove-project' , args : project } ) ;
98103 public addMilestone = ( ) => this . postMessage ( { command : 'pr.add-milestone' } ) ;
Original file line number Diff line number Diff line change @@ -541,6 +541,10 @@ body button .icon {
541541 border-radius : 4px ;
542542}
543543
544+ .merge-branches .icon-button {
545+ margin-top : 4px ;
546+ }
547+
544548.subtitle .created-at {
545549 margin-left : auto;
546550 white-space : nowrap;
You can’t perform that action at this time.
0 commit comments