Skip to content

fix: use dorny/paths-filter so required checks pass on docs-only PRs#427

Merged
lwshang merged 2 commits intomainfrom
fix/paths-filter-for-docs-only-prs
Mar 12, 2026
Merged

fix: use dorny/paths-filter so required checks pass on docs-only PRs#427
lwshang merged 2 commits intomainfrom
fix/paths-filter-for-docs-only-prs

Conversation

@lwshang
Copy link
Contributor

@lwshang lwshang commented Mar 12, 2026

Summary

  • Replaces workflow-level paths-ignore with job-level path filtering using dorny/paths-filter in checks.yml, test.yml, and validate-examples.yml
  • When a PR only touches docs, markdown, or npm files, the work jobs are skipped but the workflow still triggers — so required status checks (fmt:required, lint:required, test:required) report as "skipped" instead of missing entirely
  • This unblocks docs-only PRs like chore(deps): bump devalue from 5.6.3 to 5.6.4 in /docs-site #425

Test plan

🤖 Generated with Claude Code

Replace workflow-level `paths-ignore` with job-level path filtering
using `dorny/paths-filter`. When a PR only touches docs, markdown, or
npm files the work jobs are skipped — but the workflow still triggers,
so required status checks (fmt:required, lint:required, test:required)
report as skipped instead of missing entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lwshang lwshang marked this pull request as ready for review March 12, 2026 19:49
@lwshang lwshang requested a review from a team as a code owner March 12, 2026 19:49
name: ${{ matrix.test }} on ${{ matrix.os }}
# Wait until unit tests have run so we can reuse the cache
needs: [discover, unit-tests]
if: needs.discover.result == 'success'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why's this one different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added an inline comment explaining why: this job needs discover's matrix output (via fromJson), which is only available when discover actually ran — so we check its result rather than changes.outputs.src.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lwshang lwshang enabled auto-merge (squash) March 12, 2026 20:02
@lwshang lwshang merged commit 70732f6 into main Mar 12, 2026
88 checks passed
@lwshang lwshang deleted the fix/paths-filter-for-docs-only-prs branch March 12, 2026 20:13
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