Skip to content

CI: skip runs for refm/- and docs/-only changes, narrow misspell scope#3038

Merged
znz merged 1 commit into
rurema:masterfrom
znz:ci/limit-paths
Jul 9, 2026
Merged

CI: skip runs for refm/- and docs/-only changes, narrow misspell scope#3038
znz merged 1 commit into
rurema:masterfrom
znz:ci/limit-paths

Conversation

@znz

@znz znz commented Jul 9, 2026

Copy link
Copy Markdown
Member

概要

Markdown 移行後、refm/ は凍結(ビルド対象は manual/)、docs/ は wiki から取り込むプロジェクト文書置き場で、どちらもビルドに影響しません。これらだけを変更する PR / push(今後の refm/ 削除や docs/ の棚卸しなど)で 3 OS × 全バージョンの rake マトリクスを回すのは無駄なので、CI にパス制限を追加します。

変更内容

  • paths-ignore: push / pull_request の両トリガーに docs/**refm/** を追加。変更ファイルがこの2ツリーに収まる場合はワークフロー全体(rake マトリクス + misspell)をスキップ
  • misspell の対象制限: git ls-files の対象から refm/(凍結ツリー・919ファイル)と docs/ を除外

補足

  • pathspec が :(top) / :(exclude) の長形式なのは、git ls-files では除外のみの pathspec だと1件もマッチしなくなるため(正の pathspec が必須)。除外後の対象は 1,265 ファイル(manual/ ほか)で、ローカルで件数・除外の効きを確認済みです
  • master のブランチ保護は無効(required checks なし)なので、スキップされた PR がステータス待ちで塞がることはありません
  • docs/ 取り込み PR より先にこの PR をマージすると、取り込み PR(docs/ のみ変更)では CI が走りません

🤖 Generated with Claude Code

refm/ is frozen since the July 2026 Markdown migration (manual/ is the
canonical source) and docs/ holds project documentation imported from
the wiki; neither affects the build, so changes touching only those
trees do not need the full rake matrix. Add paths-ignore for both to
the push and pull_request triggers, and exclude them from the misspell
file list as well.

Note: the ':(top)'/':(exclude)' long-form pathspecs are used because an
exclude-only pathspec yields no files with git ls-files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@znz znz merged commit c59ff99 into rurema:master Jul 9, 2026
3 checks passed
@znz znz deleted the ci/limit-paths branch July 9, 2026 05:33
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.

1 participant