deploy-gate icon indicating copy to clipboard operation
deploy-gate copied to clipboard

Consolidate duplicate GitHub check names into single check

Open cgoldber82 opened this issue 8 months ago • 0 comments

Problem

PRs gated by PP show TWO checks:

  1. 'Deploy Gate / Permission Protocol' (from the workflow job name in pr-gate.yml)
  2. '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

  1. Remove the commit status from the action. The workflow's job status (pass/fail) is sufficient for branch protection.
  2. OR rename the workflow job to match the commit status name exactly, and stop creating the separate commit status.
  3. 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

cgoldber82 avatar Mar 11 '26 20:03 cgoldber82