mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-12 16:10:30 +02:00
ci: Strip backport information from commit labels on changelog (#27203)
This commit is contained in:
parent
4d40db2c39
commit
e5dd89022b
10
.github/scripts/update-changelog.mjs
vendored
10
.github/scripts/update-changelog.mjs
vendored
|
|
@ -30,7 +30,15 @@ const changelogStream = new ConventionalChangelog()
|
|||
const isBenchmarkScope = commit.scope === 'benchmark';
|
||||
|
||||
// Ignore commits that have 'benchmark' scope or '(no-changelog)' in the header
|
||||
return hasNoChangelogInHeader || isBenchmarkScope ? null : commit;
|
||||
if (hasNoChangelogInHeader || isBenchmarkScope) return null;
|
||||
|
||||
// Strip backport information from commit subject, e.g.:
|
||||
// "Fix something (backport to release-candidate/2.12.x) (#123)" → "Fix something (#123)"
|
||||
if (commit.subject) {
|
||||
commit.subject = commit.subject.replace(/\s*\(backport to [^)]+\)/g, '');
|
||||
}
|
||||
|
||||
return commit;
|
||||
},
|
||||
})
|
||||
.writeStream()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user