Skip to content

Commit 8aa6661

Browse files
committed
Set the right cooauth - fixes #33
1 parent 81297b8 commit 8aa6661

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ class Actor {
185185

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

0 commit comments

Comments
 (0)