Repository navigation
ci: always report the path-filtered required checks - #444
Conversation
|
GitHub ignores these owners, so they won't be auto-requested for review and their approval won't count as a code-owner approval:
Either the account doesn't exist, the invitation hasn't been accepted yet, or it lacks write access to this repository. Invite them (or fix the handle in |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change moving path filtering into the guide-lint and CODEOWNERS jobs.
No open issues 🎉
What changed in this PR
Moves path filtering into the guide-lint and CODEOWNERS jobs so required checks report success when no relevant files change, rather than blocking merges.
Changes:
- Removes workflow-level path filters while preserving existing branch filters and job names.
- Detects changed files, including both rename paths, and skips work when irrelevant.
| File | Description |
|---|---|
.github/workflows/guides-lint.yml |
Adds changed-file detection and conditional checkout and linting. |
.github/workflows/codeowners-drift.yml |
Adds changed-file detection and conditional drift and owner validation. |
Review effort: Balanced
A workflow filtered by `paths` never starts on a pull request that skips it, so a required check from one never reports and the pull request can't merge. `guides-lint` and the CODEOWNERS `drift` check both hit this. Drop the `paths` filters and have each job detect relevant changes itself. The job always starts and finishes green, doing no work, when nothing it checks has changed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3f43f7c to
9d43476
Compare
Conflict in guides-lint.yml: both sides edited the job comment. Kept the description of error-level blocking from this branch and the note to keep the job name from main. Dropped this branch's 'don't make this a required check' lines, which #444 made false.
Summary
guides-lintand the CODEOWNERSdriftcheck are required by therequire-passing-checksruleset, but their workflows used a workflow-levelpaths:filter. On a pull request that touches none of those paths the workflow never starts, so the check never reports and the pull request stays blocked, even with auto-merge on and every other check green. #443 is an example.This drops the
paths:filters. Each workflow now starts on every pull request, and a first step lists the changed files and matches the same paths the filter used (renames count under both names). The rest of the job runs only on a match; otherwise the job finishes green in a few seconds without doing any work. Job names are unchanged, so the ruleset needs no edit.Stacked on #443 because that PR adds the
paths:filter tocodeowners-drift.yml; merge this into it first.Testing
actionlint.guides-lintshould report green with its steps skipped, anddriftshould run, since this PR changescodeowners-drift.yml.🤖 Generated with Claude Code