mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 17:11:38 +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
@@ -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