ci: fix Gitee mirror workflow triggers#5778
Conversation
Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.6-terra)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Gitee mirroring workflow consolidates branch and tag push filters, excludes selected ephemeral and automation refs, refines delete-event handling, and changes the mirror job runner to ChangesGitee mirror workflow
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5778 +/- ##
==========================================
- Coverage 79.70% 79.48% -0.22%
==========================================
Files 1020 1023 +3
Lines 116360 117415 +1055
Branches 4305 4328 +23
==========================================
+ Hits 92744 93331 +587
- Misses 22076 22526 +450
- Partials 1540 1558 +18 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
njzjz-bot
left a comment
There was a problem hiding this comment.
Review found one blocking correctness issue in deletion handling; see the inline comment. Because this review is being submitted by the PR author account, GitHub only permits a comment review rather than a formal request-changes review.
Coding agent: Codex
Codex version: codex-cli 0.144.1
Model: gpt-5.6-sol
Reasoning effort: xhigh
Restore the delete event so branch and tag removals are mirrored immediately. Filter merge-queue deletion events using the payload ref because delete workflows expose the default branch through github.ref. Coding-Agent: Codex Codex-Version: codex-cli 0.144.1 Model: gpt-5.6-sol Reasoning-Effort: xhigh
wanghan-iapcm
left a comment
There was a problem hiding this comment.
All three changes are correct and the comments explain the non-obvious GitHub Actions behaviors well: switching to ubuntu-latest is required because git-mirror-action is a Docker action (ubuntu-slim has no Docker daemon); the positive branches/tags patterns fix the quirk that branches-ignore alone suppresses tag-triggered runs, and dropping create: avoids duplicate runs since ref creation is delivered as push; and the delete gating correctly inspects github.event.ref (not github.ref, which is the default branch on delete) to suppress only ephemeral gh-readonly-queue deletions while still pruning real refs. Looks good.
Summary
ubuntu-latest, where a Docker daemon is availablegh-readonly-queue/**refspushas the single trigger, preserving branch and tag mirroring while avoiding duplicatecreate/deleterunsValidation
git diff --checkAuthored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.6-terra)
Summary by CodeRabbit
ubuntu-latestfor more reliable Docker-based execution.