File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,15 @@ module.exports = async ({github, context}) => {
47
47
}
48
48
const pr_title = pr_resp . data . title ;
49
49
// Assign to PR owner and reviewers
50
- let assignees = pr_resp . data . assignees ;
51
- assignees . push ( pr_resp . data . user . login ) ;
50
+ const assignees = pr_resp . data . assignees . concat ( pr_resp . data . requested_reviewers ) ;
51
+ let assignee_logins = assignees . map ( x => x . login ) ;
52
+ assignee_logins . push ( pr_resp . data . user . login ) ;
53
+ console . log ( assignee_logins ) ;
52
54
// Create an new GH Issue and reference the Original PR
53
55
const resp = await github . rest . issues . create ( {
54
56
owner,
55
57
repo,
56
- assignees,
58
+ assignees : assignee_logins ,
57
59
title : `Issue created for Rollback of PR #${ pr_number } : ${ pr_title } ` ,
58
60
body : `Merged PR #${ pr_number } is rolled back in ${ rollback_commit } .
59
61
Please follow up with the reviewer and close this issue once its resolved.`
You can’t perform that action at this time.
0 commit comments