Skip to content

Commit

Permalink
ci: Omit benchmark scope commits from changelog (no-changelog) (#10618)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi authored Aug 30, 2024
1 parent 9fa1a9a commit 6119434
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/scripts/update-changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ const changelogStream = conventionalChangelog({
releaseCount: 1,
tagPrefix: 'n8n@',
transform: (commit, callback) => {
callback(null, commit.header.includes('(no-changelog)') ? undefined : commit);
const hasNoChangelogInHeader = commit.header.includes('(no-changelog)');
const isBenchmarkScope = commit.scope === 'benchmark';

// Ignore commits that have 'benchmark' scope or '(no-changelog)' in the header
callback(null, hasNoChangelogInHeader || isBenchmarkScope ? undefined : commit);
},
}).on('error', (err) => {
console.error(err.stack);
Expand Down

0 comments on commit 6119434

Please sign in to comment.