fix(ci): reject hosted gate flag values · openclaw/openclaw@03ce3d4
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -304,6 +304,22 @@ describe("verify-pr-hosted-gates", () => {
|
304 | 304 | changelogOnly: false, |
305 | 305 | }); |
306 | 306 | expect(() => parseArgs(["--repo", "openclaw/openclaw"])).toThrow("Usage:"); |
| 307 | +expect(() => |
| 308 | +parseArgs(["--repo", "-h", "--sha", sha, "--output", ".local/gates-hosted-checks.json"]), |
| 309 | +).toThrow("Expected --repo <value>."); |
| 310 | +expect(() => |
| 311 | +parseArgs([ |
| 312 | +"--repo", |
| 313 | +"openclaw/openclaw", |
| 314 | +"--sha", |
| 315 | +"-h", |
| 316 | +"--output", |
| 317 | +".local/gates-hosted-checks.json", |
| 318 | +]), |
| 319 | +).toThrow("Expected --sha <value>."); |
| 320 | +expect(() => |
| 321 | +parseArgs(["--repo", "openclaw/openclaw", "--sha", sha, "--output", "-h"]), |
| 322 | +).toThrow("Expected --output <value>."); |
307 | 323 | }); |
308 | 324 | |
309 | 325 | it("accepts JSON emitted through a colorizing GitHub CLI shim", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。