Skip to content

fix(ci): make sync-develop open a back-merge that can actually merge - #585

Merged
tomymaritano merged 1 commit into
developfrom
fix/sync-develop-backmerge
Aug 23, 2026
Merged

fix(ci): make sync-develop open a back-merge that can actually merge#585
tomymaritano merged 1 commit into
developfrom
fix/sync-develop-backmerge

Conversation

@tomymaritano

Copy link
Copy Markdown
Collaborator

Context

I enabled Allow GitHub Actions to create and approve pull requests at the org and repo level, which unblocked sync-develop — it had been failing with GitHub Actions is not permitted to create or approve pull requests since forever. Re-running it against the v0.17.0 build now succeeds.

But it immediately produced #584, which cannot merge.

The problem

sync-develop opened a develop ← main PR. That shape deadlocks: develop requires the head branch to be up to date, and main falls behind develop the moment anything lands after the release — #582 and #583 did exactly that. #584 has been sitting at BEHIND since it was created. I hit the same wall by hand earlier tonight with #577.

Even if it could merge, the squash auto-merge would replay the content as a fresh commit and not establish ancestry, which is the entire point of a back-merge. That is what went wrong in #578 and #579.

The fix

Push a branch descended from develop with main merged into it, then open that against develop. Same thing that finally worked manually in #581.

  • Named chore/backmerge-main-<tag>, which matches the exclusion added in fix(ci): keep release back-merges out of the squash auto-merge #580 so automerge.yml leaves it alone.
  • The job arms auto-merge itself with --merge, so it lands as a merge commit.
  • Exits early when main is already an ancestor, or when the branch already exists, so re-runs are safe.

Follow-up

#584 should be closed — this replaces it. The next release will exercise this path for real.

🤖 Generated with Claude Code

The job opened a `develop <- main` PR. That shape cannot merge: develop
requires the head branch to be up to date, and main falls behind develop the
moment anything lands after the release. #584 was created that way and is
already stuck at BEHIND.

It now pushes a branch descended from develop with main merged into it, which
satisfies the rule and — unlike a squash — actually makes main an ancestor of
develop, so the next promotion PR is not stuck at BEHIND. The branch is named
chore/backmerge-main-<tag> so automerge.yml skips it, and the job arms
auto-merge with --merge explicitly.

Exits early when main is already an ancestor, or when the branch exists.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@tomymaritano
tomymaritano enabled auto-merge (squash) August 23, 2026 03:11
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@tomymaritano, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 52 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f7f1aba3-19ed-496c-a602-e410ab6e5485

📥 Commits

Reviewing files that changed from the base of the PR and between f083564 and 2758940.

📒 Files selected for processing (1)
  • .github/workflows/build.yml

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tomymaritano
tomymaritano merged commit 0441120 into develop Aug 23, 2026
16 checks passed
@tomymaritano
tomymaritano deleted the fix/sync-develop-backmerge branch August 23, 2026 03:14
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant