deploy-gate
deploy-gate copied to clipboard
Consolidate duplicate GitHub check names into single check
Problem
PRs gated by PP show TWO checks:
- 'Deploy Gate / Permission Protocol' (from the workflow job name in pr-gate.yml)
- 'Permission Protocol' (the commit status set by the deploy-gate action)
Customers see two checks and don't know which one matters. Both say similar things but report different states.
Root cause
The workflow has a job named 'Permission Protocol' which creates the Actions check. The deploy-gate action ALSO creates a commit status named 'Permission Protocol'. These are two different GitHub mechanisms (Check Run vs Commit Status) that show up separately in the PR checks list.
Solution
- Remove the commit status from the action. The workflow's job status (pass/fail) is sufficient for branch protection.
- OR rename the workflow job to match the commit status name exactly, and stop creating the separate commit status.
- Whichever path: one check name, one status. Branch protection references that single name.
Recommendation
Option 1 is simpler. The deploy-gate action should NOT set a separate commit status — the workflow job's own pass/fail result is the check. The action just needs to create the deploy request and poll for approval. The job passes or fails based on the result.
Success criteria
- PRs show exactly ONE check related to Permission Protocol
- Branch protection rules reference that single check
- No customer confusion about which check to watch