Skip to content

Commit

Permalink
Set the right cooauth - fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Nov 15, 2021
1 parent 81297b8 commit 8aa6661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ class Actor {

core.info(`Creating comments and merging`)
try {
const coauthor = `Co-authored-by: ${sender} <${sender}@users.noreply.github.com>`
// @ts-ignore
await octokit.pulls.merge({ ...thisRepo, pull_number: issue.number, merge_method: core.getInput('merge_method') || 'merge' });
await octokit.pulls.merge({ ...thisRepo, pull_number: issue.number, merge_method: core.getInput('merge_method') || 'merge', commit_message: coauthor });
await octokit.issues.createComment({ ...thisRepo, issue_number: issue.number, body: `Merging because @${sender} is a code-owner of all the changes - thanks!` });
} catch (error) {
core.info(`Merging (or commenting) failed:`)
Expand Down

0 comments on commit 8aa6661

Please sign in to comment.