Fix Null Pointer Exception on Message Issue Links (#469)

[COMBINE]
commits = ["fbd1584e7baed4a3603e3c810066603185f1b230"]
[COMBINE]
This commit is contained in:
IntegerLimit 2023-10-21 15:19:14 +11:00 committed by GitHub
parent 3b03b11b7d
commit b15494c8bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ function formatChangelogMessage(changelogMessage: ChangelogMessage, subMessage =
let message = changelogMessage.commitMessage.trim();
// Transform PR tags into a link.
if (message.match(/(#\d+)/g)) {
if (message.match(/\(#\d+\)/g)) {
const matched = message.match(/\(#\d+\)/g);
matched.forEach((match) => {
// Extract digits