Skip to content

Commit 0c38082

Browse files
committed
fix(maint): use canonical hosted gate verifier
1 parent 8d1668c commit 0c38082

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/pr-lib/gates.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ run_hosted_prepare_gates() {
1212

1313
local repo
1414
repo=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
15+
local scripts_dir="${script_parent_dir:-}"
16+
if [ -z "$scripts_dir" ]; then
17+
scripts_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
18+
fi
1519
local args=(
16-
scripts/verify-pr-hosted-gates.mjs
20+
"$scripts_dir/verify-pr-hosted-gates.mjs"
1721
--repo "$repo"
1822
--sha "$current_head"
1923
--pr "$pr"

test/scripts/pr-prepare-gates.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ describe("prepare gate stamp transitions", () => {
427427

428428
expect(result.status).toBe(0);
429429
expect(result.stdout).toContain("ARG:hosted CI/Testbox gates");
430+
expect(result.stdout).toContain(`ARG:${repoRoot}/scripts/verify-pr-hosted-gates.mjs`);
430431
expect(result.stdout).toContain("ARG:--pr\nARG:100606");
431432
expect(result.stdout).toContain("ARG:--recent-sha\nARG:cafebabe");
432433
});

0 commit comments

Comments
 (0)