ci: add workflow to auto-sync feature branch with main - #1302
Conversation
📝 WalkthroughWalkthroughAdds a GitHub Actions workflow that synchronizes a configurable feature branch with Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/sync-feature-branch.yaml:
- Around line 16-18: Add a job-level concurrency configuration to sync-branch
using inputs.target_branch || 'new-resolver-config' as the group and set
cancel-in-progress to false, ensuring runs targeting the same branch execute
serially.
- Around line 34-38: Update the Configure git step to stop interpolating
GH_TOKEN into git remote URLs. Set GH_TOKEN only for the gh auth setup-git
command, then configure origin with a token-free repository URL while preserving
persist-credentials: false.
- Around line 68-73: Update the conflict issue lookup that sets EXISTING to
generate the expected issue title once, request issue titles from gh issue list,
and use an exact title comparison rather than the broad in:title
${TARGET_BRANCH} search. Preserve counting only open issues whose title exactly
matches the generated conflict title.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: f61ad798-6114-4d53-8b9b-02c49d7ff1ba
📒 Files selected for processing (1)
.github/workflows/sync-feature-branch.yaml
f1f7177 to
7780192
Compare
Adds a GitHub Actions workflow that merges main into the new-resolver-config feature branch on every push to main. If merge conflicts arise, it opens a GitHub issue listing the conflicting files with the sync-conflict label. When a subsequent sync succeeds, any open sync-conflict issue for that branch is automatically closed. The branch name is configurable via workflow_dispatch for reuse with future long-lived branches. Closes: python-wheel-build#1295 Co-Authored-By: Claude <claude@anthropic.com> Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
7780192 to
c994f1b
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
|
Summary
Adds a GitHub Actions workflow that automatically keeps the
new-resolver-configfeature branch in sync withmain, replacing the need for manual merge/rebase cycles during the feature's development.Closes #1295
What it does
maintriggers a merge ofmaininto the feature branch, preventing conflict debt from accumulating.sync-conflictlabel listing the specific conflicting files so the team knows exactly what to resolve.workflow_dispatchfor use with future long-lived branches.🤖 Generated with Claude Code