Skip to content

ci: always report the path-filtered required checks - #444

Merged
jpage-godaddy merged 1 commit into
mainfrom
required-check-issues
Dec 4, 2026
Merged

jpage-godaddy merged 1 commit into
mainfrom
required-check-issues

Conversation

@jpage-godaddy

Copy link
Copy Markdown
Collaborator

Summary

guides-lint and the CODEOWNERS drift check are required by the require-passing-checks ruleset, but their workflows used a workflow-level paths: 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 to codeowners-drift.yml; merge this into it first.

Testing

  • Both workflow files parse and pass actionlint.
  • The two path patterns match and reject the expected sample paths.
  • On this PR, guides-lint should report green with its steps skipped, and drift should run, since this PR changes codeowners-drift.yml.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ CODEOWNERS lists owners GitHub can't resolve.

GitHub ignores these owners, so they won't be auto-requested for review and their approval won't count as a code-owner approval:

  • @cderangula-godaddy
  • @mcolakovic-godaddy
  • @tmittal-godaddy

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 .github/scripts/reviewers.json and regenerate). This is a warning only and does not block merging.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

Base automatically changed from collaborator-checks to main December 4, 2026 17:04
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>
@jpage-godaddy
jpage-godaddy enabled stacked auto-merge (squash) December 4, 2026 17:18
@jpage-godaddy
jpage-godaddy disabled stacked auto-merge December 4, 2026 17:18
@jpage-godaddy
jpage-godaddy merged commit e8c3907 into main Dec 4, 2026
12 checks passed
@jpage-godaddy
jpage-godaddy deleted the required-check-issues branch December 4, 2026 17:18
mknell-godaddy added a commit that referenced this pull request Dec 4, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants