Skip to content

Commit 132c0f2

Browse files
authored
Chore: [AEA-0000] - only use first line of commit to get ticket (#104)
## Summary - Routine Change ### Details - only use first line of commit to get ticket
1 parent d2a4595 commit 132c0f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/semantic_release_jira/index.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ module.exports = {
6262
const jiraRegex = /\[(AEA-\d+)\]/g
6363

6464
for (const commit of commits) {
65-
const matches = commit.message.match(jiraRegex)
65+
const firstLine = commit.message?.split("\n", 1)[0] ?? ""
66+
const matches = firstLine.match(jiraRegex)
6667
if (matches) {
6768
matches.forEach(t => jiraTickets.add(t))
6869
}

0 commit comments

Comments
 (0)