File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export enum ModalsEnum {
3535 MERGE_PULL_REQUEST_ACTION = 'merge-pull-request' ,
3636 MERGE_PULL_REQUEST_LABEL = 'Merge' ,
3737 APPROVE_PULL_REQUEST_ACTION = 'approve-pull-request' ,
38+ APPROVE_PULL_REQUEST_LABEL = 'Approve' ,
3839 COMMENT_PR_ACTION = 'comment-pull-request' ,
3940 COMMENT_PR_LABEL = 'Add Comment' ,
4041 COMMENT_ISSUE_ACTION = 'comment-issue' ,
Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ export async function pullDetailsModal({
140140 } ,
141141 value : `${ data ?. repository } ${ data ?. number } ` ,
142142 } ) ,
143+ block . newButtonElement ( {
144+ actionId : ModalsEnum . APPROVE_PULL_REQUEST_ACTION ,
145+ text : {
146+ text : ModalsEnum . APPROVE_PULL_REQUEST_LABEL ,
147+ type : TextObjectType . PLAINTEXT ,
148+ } ,
149+ value : `${ data ?. repository } ${ data ?. number } ` ,
150+ } ) ,
143151 ] ,
144152 } ) ;
145153
You can’t perform that action at this time.
0 commit comments