Repository navigation
ci: skip CI and the Docs build for session logs and design notes - #203
Conversation
docs/sessions/ and docs/designs/ are excluded from the site (docs/conf.py's exclude_patterns) and hold no code, yet a PR touching only them ran the whole build matrix and the Sphinx build. Both workflows now ignore those paths on push and pull_request. The protect-main ruleset requires no status checks, so a PR that runs nothing can still merge. README, CHANGELOG and the published guide pages still get lint, whose ruff formats the Python blocks in Markdown, and the Docs build. Releases are unaffected: semantic-release runs from wheels.yml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
A PR that touched only a session log, such as #202, ran the whole CI matrix (Linux, macOS, Windows, applications, ecosystem) and the Sphinx build. But
docs/sessions/anddocs/designs/hold no code, anddocs/conf.py'sexclude_patternsalready keeps them off the site.ci.ymlanddocs.ymlnow havepaths-ignore: ['docs/sessions/**', 'docs/designs/**']on bothpushandpull_request. A change confined to those directories runs neither workflow. A change that touches anything else still runs both, as before.protect-mainruleset only blocks deletion and non-fast-forward pushes, and requires no status checks. So a PR that runs no checks can still merge.wheels.yml, which this PR doesn't touch, anddocs:commits don't release anyway.Test plan
on:has the expectedpaths-ignorelists..github/, so both workflows should still run on it.🤖 Generated with Claude Code
Summary by CodeRabbit
mainwhen changes are limited to session or design documentation. Changes that also affect other files continue to trigger the workflows. This keeps documentation-only updates from starting these checks while preserving runs for changes beyond those documentation areas.