Skip to content

Commit e5c4114

Browse files
committed
rename
1 parent c51aaa5 commit e5c4114

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/813.index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/813.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/helpers/create-batched-commit-message.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export const createBatchedCommitMessage = () => {
2626

2727
return eventPayload.commits
2828
.map(commit => {
29-
const prNumberMatch = commit.message.match(/\(#(\d+)\)/)?.[0] ?? '';
30-
const messageWithoutPrNumber = commit.message.replace(prNumberMatch, '').trim();
29+
const prNumberWithParens = commit.message.match(/\(#(\d+)\)/)?.[0] ?? '';
30+
const messageWithoutPrNumber = commit.message.replace(prNumberWithParens, '').trim();
3131
const truncatedMessage = messageWithoutPrNumber.slice(0, maxCharactersPerMessage);
3232
if (truncatedMessage.length < messageWithoutPrNumber.length) {
33-
return `${truncatedMessage}... ${prNumberMatch ?? 'PR unknown'}`;
33+
return `${truncatedMessage}... ${prNumberWithParens ?? 'PR unknown'}`;
3434
}
3535
return commit.message;
3636
})

0 commit comments

Comments
 (0)