ci: enforce changelog attribution policy in pr gates · openclaw/openclaw@0f996ad
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { readFileSync } from "node:fs"; |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { findForbiddenChangelogThanks } from "../../scripts/check-changelog-attributions.mjs"; |
3 | 4 | |
@@ -25,4 +26,12 @@ describe("check-changelog-attributions", () => {
|
25 | 26 | ), |
26 | 27 | ).toEqual([]); |
27 | 28 | }); |
| 29 | + |
| 30 | +it("keeps PR changelog gates on the same attribution policy", () => { |
| 31 | +const changelogLib = readFileSync("scripts/pr-lib/changelog.sh", "utf8"); |
| 32 | +const gates = readFileSync("scripts/pr-lib/gates.sh", "utf8"); |
| 33 | + |
| 34 | +expect(changelogLib).toContain("node scripts/check-changelog-attributions.mjs CHANGELOG.md"); |
| 35 | +expect(gates).toContain("validate_changelog_attribution_policy"); |
| 36 | +}); |
28 | 37 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。