Files
hyperframes/scripts/changelog-skip.mjs
T
Miguel Ángel 5d2914f7ce fix(ci): a release fails its checks when its notes miss a commit merged after the cut (#7601)
* fix(ci): a release fails its checks when its notes miss a commit merged after the cut

* fix(ci): shorten the release checks comment

* fix(ci): find the last release by subject and say to link a deliberate omission
2026-11-12 11:39:42 +00:00

17 lines
628 B
JavaScript

const RELEASE = "chore(?:\\(release\\))?: (?:release|cut) v(\\d+\\.\\d+\\.\\d+)";
/** The version a release commit's subject names, or null for any other subject. */
export function releaseVersionOf(subject) {
return new RegExp(`^${RELEASE}(?: \\(#\\d+\\))?$`).exec(subject)?.[1] ?? null;
}
/** Whether a commit subject stays out of release notes: a release, a version bump, or an explicit skip. */
export function skipsChangelog(subject) {
const lower = subject.toLowerCase();
return (
lower.includes("[skip changelog]") ||
new RegExp(`^${RELEASE}`).test(lower) ||
/^chore: bump version/.test(lower)
);
}