Repository navigation
版上げの PR でも CI を飛ばす - #149
Merged
Merged
Conversation
Actions が作った版上げの PR にも pull_request の CI が承認待ちで作られ、承認すると changes が push 以外を「回す」と判定していたため test が走っていた。PR では向き先の コミットと比べ、版だけの変更なら同じく飛ばす。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
概要
#147 で版上げだけの変更では CI を回さないようにしましたが、版上げの PR(#148, 0.4.0)で
testが走りました。原因は 2 つです。
pull_requestの CI は作られ、承認待ち(action_required) で止まる。承認すると走る(「起動しない」という Release を Draft で作る・版上げだけの変更では CI を回さない #147 の前提が誤りだった)ci.ymlのchangesはpushのときだけ判定し、pull_requestでは常に「回す」にしていた変更
ci.ymlのchanges:pull_requestでも判定する。比べる元はpull_request.base.sha(push は従来どおりbefore)。PR の checkout はマージ後の姿なので、向き先が進んでいればその変更も差分に入り、CI を回す側に倒れるbump-version.yml/CLAUDE.mdのコメントを事実に合わせる確かめたこと
pull/148/merge)を向き先と比べるとonly-versionがtrueを返すchangesがcode=trueを出し、test/test-windowsが走ることtest/test-windowsが飛ぶこと🤖 Generated with Claude Code