-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
The pr_exists porch check uses gh pr list which defaults to --state open. When a PR is merged before the gate is approved (e.g. architect approves late), the check returns 0 results and blocks the gate.
Root Cause
In codev-skeleton/protocols/*/protocol.json, the pr_exists check command is:
gh pr list --head {{branch}} --json number --jq 'length'
gh pr list defaults to --state open. Once a PR is merged, it's no longer in the "open" state, so the check returns 0 and porch blocks.
Fix
Add --state all to the pr_exists check in all protocol.json files:
gh pr list --state all --head {{branch}} --json number --jq 'length'
Affected Files
codev-skeleton/protocols/spir/protocol.jsoncodev-skeleton/protocols/air/protocol.jsoncodev-skeleton/protocols/aspir/protocol.json- Any other protocol.json with a
pr_existscheck
Notes
Already fixed locally in marketmaker's spir/protocol.json. Needs upstream fix in the codev-skeleton so all new installs and codev update get the fix.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working