Run CI when a pull request is retargeted to main - #27
Merged
Merged
Conversation
Same change as kaappi.github.io#57. With only a base-branch filter the pull_request trigger fires on the default activity types, so a stacked PR that GitHub retargets to main when its base merges (an edited event) starts no run, and the required test check sits pending with nothing behind it. Listing the types with edited included makes the retarget start the run on its own. Title and body edits also count as edited; those extra runs are the price, and the suite is quick. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Baiju Muthukadan <baiju.m.mail@gmail.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.
Same change as kaappi.github.io#57, for the same reason.
The
pull_requesttrigger had only a base-branch filter, so it fired on the default activity types (opened,synchronize,reopened). A stacked PR that GitHub retargets tomainwhen its base merges is aneditedevent: no run starts, and the requiredtestcheck sits pending until a push or a close/reopen forces one. Listing the types explicitly witheditedincluded makes the retarget start the run on its own.editedalso fires on title and body edits. Those extra runs rebuild Kaappi from source, about two and a half minutes each, which is the trade-off. Thebranches: [main]filter is unchanged.🤖 Generated with Claude Code