Skip to content

Commit 786a6c6

Browse files
authored
Update merge commit title to mimic github's pattern (#88)
* Update merge commit title to mimic github's pattern * update based on feedback
1 parent 6596883 commit 786a6c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Co-authored-by: Test User3 <[email protected]>`;
6161

6262
await probot.receive({name: 'issue_comment', payload: fixtures.payload});
6363
expect(await mergeRequest).toEqual({
64-
commit_title: 'Test PR',
64+
commit_title: 'Test PR (#1)',
6565
commit_message: expectedMessage,
6666
merge_method: 'squash',
6767
});

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = robot => {
6969
await github.pullRequests.merge(
7070
context.repo({
7171
pull_number: issue.number,
72-
commit_title: issue.title,
72+
commit_title: `${issue.title} (#${issue.number})`,
7373
commit_message,
7474
merge_method,
7575
}),

0 commit comments

Comments
 (0)