Skip to content

Commit

Permalink
Print out ignored commits with reason
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed May 16, 2023
1 parent a9aa98f commit dc26df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate_changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ for (const commitHash of commitHashes.trim().split("\n")) {
const rawCommit = shell(`git log --format='%s' ${commitHash}^!`);

if (!isPrCommitRg.test(rawCommit)) {
// Drop commits without a PR reference
console.log(`Ignored commit "${rawCommit}" (missing PR reference)`);
continue;
}

const conventionalCommit = rawCommit.match(conventionalCommitRg);
if (!conventionalCommit) {
// Drop commits that do not follow conventional commit pattern
console.log(`Ignored commit "${rawCommit}" (not conventional commit)`);
continue;
}

Expand Down

0 comments on commit dc26df1

Please sign in to comment.