mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 08:11:34 +00:00
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:
committed by
GitHub
parent
b37e819d74
commit
6bc06abbfb
@@ -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" &&
|
||||
|
||||
1
test/external-script-modules.d.ts
vendored
1
test/external-script-modules.d.ts
vendored
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user