@@ -142,6 +142,12 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
142142
143143 this . setVisibilityContext ( ) ;
144144
145+ this . _register ( vscode . commands . registerCommand ( 'pr.readyForReview' , async ( ) => {
146+ return this . readyForReviewCommand ( ) ;
147+ } ) ) ;
148+ this . _register ( vscode . commands . registerCommand ( 'pr.readyForReviewAndMerge' , async ( context ?: { mergeMethod : MergeMethod } ) => {
149+ return this . readyForReviewAndMergeCommand ( context ) ;
150+ } ) ) ;
145151 this . _register ( vscode . commands . registerCommand ( 'review.approveDescription' , ( e ) => this . approvePullRequestCommand ( e ) ) ) ;
146152 this . _register ( vscode . commands . registerCommand ( 'review.commentDescription' , ( e ) => this . submitReviewCommand ( e ) ) ) ;
147153 this . _register ( vscode . commands . registerCommand ( 'review.requestChangesDescription' , ( e ) => this . requestChangesCommand ( e ) ) ) ;
@@ -678,6 +684,22 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
678684 }
679685 }
680686
687+ private async readyForReviewCommand ( ) : Promise < void > {
688+ // Trigger the webview action by posting a message
689+ // This will use the existing webview logic which handles busy state
690+ this . _postMessage ( {
691+ command : 'pr.readyForReview-trigger'
692+ } ) ;
693+ }
694+
695+ private async readyForReviewAndMergeCommand ( _context ?: { mergeMethod : MergeMethod } ) : Promise < void > {
696+ // Trigger the webview action by posting a message
697+ // This will use the existing webview logic which handles busy state
698+ this . _postMessage ( {
699+ command : 'pr.readyForReviewAndMerge-trigger'
700+ } ) ;
701+ }
702+
681703 private async checkoutDefaultBranch ( message : IRequestMessage < string > ) : Promise < void > {
682704 try {
683705 const prBranch = this . _folderRepositoryManager . repository . state . HEAD ?. name ;
0 commit comments