ci(dependabot): merge minor and patch updates only after CI Success - #564
Merged
Merged
Conversation
- with no required checks, gh pr merge --auto merged #563 before CI ran - wait for the CI Success check on the PR head, merge with --match-head-commit, and leave the PR for review when CI fails or does not finish in 40 minutes - cancel the wait for a superseded head; grant checks: read for the lookup
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
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.
背景
#562 把 Dependabot 改成分组 PR 之后,第一个分组 PR #563(4 个 Action 的小版本更新)在 14:46:44 创建,19 秒后就被「Dependabot Auto-Merge」合进了 main,CI 到 14:52 才跑完。原因:仓库没有必需检查,
gh pr merge --auto会直接合并,不等 CI。这次 CI 事后全部通过,但以后每周的小版本与补丁分组 PR 都会这样未经 CI 进入 main。改动
CI Success:成功才gh pr merge --squash --match-head-commit;失败或 40 分钟内没有结果就留给人工(只打警告,不合并)。checks: read,job 超时放宽到 45 分钟。验证
actionlint通过。🤖 Generated with Claude Code