Interview Prep/Git & GitHub/GitHub, Actions and Pull Request Issues

The PR is stuck on `Expected — Waiting for status to be reported` for a required check called `build`.

IntermediateTroubleshootingGitHub, Actions and Pull Request Issues
Answer

Likely causes → The required check name in branch protection no longer matches any job (job renamed, matrix changed build to build (20.x)), or the workflow did not run at all because of paths: / branches: filters, so the check is never reported.

Diagnose → Compare the required check names (Settings → Branches/Rulesets) with the check names in the PR's Checks tab. Look at the workflow's on: filters.

Fix → Update the required check to the exact job name, or make the workflow always run and skip internally:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: dorny/paths-filter@v3
        id: f
        with: { filters: "src: ['src/**']" }
      - if: steps.f.outputs.src == 'true'
        run: make build

A common pattern is one always-running "ci-ok" job that needs: all others, and only that job is required.

Prevent → Treat job names as an API; change required checks in the same PR that renames jobs.

All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub, Actions and Pull Request Issues