ci: Omit benchmark scope commits from changelog (no-changelog) (#10618)

This commit is contained in:
Tomi Turtiainen 2024-08-30 11:07:36 +03:00 committed by GitHub
parent 9fa1a9aa99
commit 611943487a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);