Skip to content

Commit

Permalink
fix: commit messages format (broken links)
Browse files Browse the repository at this point in the history
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
  • Loading branch information
virtual-designer committed Aug 29, 2024
1 parent 74b68a5 commit 4562b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35370,7 +35370,7 @@ class ChangeLogGenerator {
notes += `### ${ChangeLogGenerator.COMMIT_CLASSIFICATION[key]}\n`;
headerAdded = true;
}
notes += `* \`[[${commit.shortId}](https://github.com/${githubUsername}/${githubRepo}/commit/${commit.id})]\` **${typeWithSubject[1]}**: ${head.replace(/^([A-Za-z0-9-_](.*?))\!?:/, "").trim()}\n`;
notes += `* [[\`${commit.shortId}\`](https://github.com/${githubUsername}/${githubRepo}/commit/${commit.id})] **${typeWithSubject[1]}**: ${head.replace(/^([A-Za-z0-9-_](.*?))\!?:/, "").trim()}\n`;
}
if (headerAdded) {
notes += "\n";
Expand Down
2 changes: 1 addition & 1 deletion src/ChangeLogGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ChangeLogGenerator implements AsyncDisposable {
headerAdded = true;
}

notes += `* \`[[${commit.shortId}](https://github.com/${githubUsername}/${githubRepo}/commit/${commit.id})]\` **${typeWithSubject[1]}**: ${head.replace(/^([A-Za-z0-9-_](.*?))\!?:/, "").trim()}\n`;
notes += `* [[\`${commit.shortId}\`](https://github.com/${githubUsername}/${githubRepo}/commit/${commit.id})] **${typeWithSubject[1]}**: ${head.replace(/^([A-Za-z0-9-_](.*?))\!?:/, "").trim()}\n`;
}

if (headerAdded) {
Expand Down

0 comments on commit 4562b34

Please sign in to comment.