Repository navigation
ドキュメントだけの変更では test と pack をスキップする - #16
Merged
Merged
Conversation
changes ジョブで変更ファイルを判定し、*.md・LICENSE・.claude/・dependabot.yml だけの変更なら test と pack をスキップする。paths-ignore だと必須チェックが 報告されずマージできなくなるため、結果をまとめる build-result ジョブを追加し、 これをルールセットの必須チェックにする。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更内容
build.ymlにchangesジョブを追加した。ビルドに関係しないファイルだけの変更なら、test(4 ジョブ)と pack をスキップする。*.md(README・CLAUDE.md・SECURITY.md など)、LICENSE、.claude/、.github/dependabot.ymlv*タグ(公開)のときは、常にビルドする。build-resultジョブの追加: test・pack の結果をまとめるジョブ。どれかが失敗・キャンセルされたら失敗し、すべて成功またはスキップなら成功する。paths-ignoreでワークフローごと止めると必須チェックが報告されず、ドキュメントの PR がマージできなくなる。そのため、ワークフローは常に動かし、build-resultを必須チェックにする形にした。マージ後に必要なルールセットの変更
ルールセット「master の保護」の必須チェックを、
test4 ジョブとpackからbuild-resultに置き換える(verifyはそのまま残す)。今の時点で変えると、このワークフローがまだ入っていない PR がマージできなくなるので、マージ後に変更する。確認
SECURITY.mdだけ → スキップ、.mdとコードの両方 → ビルド、build.yml・Directory.Build.props・テストデータ → ビルド)。gh actions-lock --verify-localは問題なし(新しいアクションは追加していない)。🤖 Generated with Claude Code
https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u