fix(release): exclude automation changelog credit (#114788)

* fix(release): exclude automation changelog credit

* fix(ci): repair release-note verifier gates
This commit is contained in:
Peter Steinberger
2026-07-27 19:24:47 -04:00
committed by GitHub
parent b37e819d74
commit 6bc06abbfb
3 changed files with 19 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ import {
defaultGithubSnapshotPath,
githubApiWithSnapshot,
highlightCountError,
isEligibleHandle,
persistGithubSnapshot,
pullRequestTitleFromCommitSubject,
releaseNoteReferences,
@@ -48,6 +49,13 @@ function git(cwd: string, args: string[]): string {
}
describe("release-note verification", () => {
it("excludes maintainer and automation identities from contributor credit", () => {
expect(isEligibleHandle("human-contributor")).toBe(true);
expect(isEligibleHandle("steipete")).toBe(false);
expect(isEligibleHandle("steipete-oai")).toBe(false);
expect(isEligibleHandle("hugin-bot")).toBe(false);
});
it("accepts only canonical commit PR suffixes", () => {
expect(pullRequestTitleFromCommitSubject("Fix status (#102147)", 102147)).toBe("Fix status");
expect(pullRequestTitleFromCommitSubject("Fix status(#102147)", 102147)).toBeUndefined();