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

@@ -24,7 +24,15 @@ const repo = "openclaw/openclaw";
const githubSnapshotSchemaVersion = 1;
const githubSnapshotCheckpointInterval = 25;
const commitAssociationQueryBatchSize = 20;
const excludedHandles = new Set(["openclaw", "clawsweeper", "claude", "codex", "steipete"]);
const excludedHandles = new Set([
"openclaw",
"clawsweeper",
"claude",
"codex",
"hugin-bot",
"steipete",
"steipete-oai",
]);
const nonEditorialTypes = new Set([
"build",
"chore",
@@ -405,7 +413,7 @@ function escapeRegExp(value) {
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
function isEligibleHandle(handle) {
export function isEligibleHandle(handle) {
return (
typeof handle === "string" &&
handle.toLowerCase() !== "undefined" &&

View File

@@ -173,6 +173,7 @@ declare module "*openclaw-changelog-update/scripts/verify-release-notes.mjs" {
};
export function countTopLevelSectionBullets(sectionSource: string, heading: string): number;
export function highlightCountError(sectionSource: string): string | undefined;
export function isEligibleHandle(handle: string): boolean;
export function ledgerChecks(...args: unknown[]): string[];
}

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