All posts
Development Log 2 min read

Can you merge if GitHub says a required check was skipped?

A draft-time skip, a passing run, and a gate that never executed need different decisions. Look at what ran for the current commit.

Open a draft PR in a repo that holds CI until the PR is ready. GitHub shows a skipped job. Mark it ready without changing the code and CI passes. Now the same PR can show both the skip and the pass. If your merge logic treats every check row as a test outcome, it can block a PR that has already done the work.

Ask what the check did for this commit

What you see What to inspect
A skip while the PR is a draft If the job deliberately waits for readiness, let pre-review finish and check that the ready event runs CI.
A skip and a pass for the same PR head Open the passing run and confirm the named gate executed on the commit you’re evaluating.
Only skips on a ready PR Inspect the job condition, path filter, and event. Find out whether the gate ever ran.
An executed run failed Read the failing step and use that result to decide whether the code or the CI setup needs work.

GitHub handles workflow skips and job skips differently. A path-filtered workflow can leave a required check pending, while a job skipped by a condition can report success to branch protection. A green merge box can therefore tell you less than the job run itself. GitHub’s required checks guide

If a job is supposed to start when a draft becomes ready, confirm its if condition allows ready PRs. Include ready_for_review in the workflow’s pull_request activity types alongside the types it already uses. It’s outside GitHub’s default set. GitHub’s workflow events reference

How Autop reads a skipped CI check

Autop’s draft workflow hit both sides of this. The initial skip sent new drafts to a maintainer before pre-review. On ready PRs, the old skip could still block merge next to a passing run.

Autop now delays handoff for missing declared gates until the PR is ready. It evaluates the gate using runs that executed. A ready PR with only skips still needs an executed result. That lets the draft move through review and gives the maintainer a specific CI problem to solve if the gate really is absent.

Topics

Get new posts by email