fix: open conflict sync PRs and comment [ED-25668] - #57
Merged
Merged
Conversation
Cherry-pick squash commits so binary files apply, and commit real conflicts so the draft PR is not empty. Post the git or GitHub error on the original PR when a downstream sync fails. Co-authored-by: Cursor <cursoragent@cursor.com>
Ntnelbaba
approved these changes
Sep 28, 2026
Ntnelbaba
enabled auto-merge (squash)
September 28, 2026 08:32
max-zu
approved these changes
Sep 28, 2026
davseve
disabled auto-merge
September 28, 2026 10:22
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.
Summary
cannot apply binary patch without full index line.No commits between.Test plan
release/stablethat changes a PNG snapshot and confirm sync PRs open againstrelease/betaandmain.Made with Cursor
✨ PR Description
1. Problem & Context
The current sync process fails silently or provides poor visibility when merge conflicts occur. This update ensures conflict resolution is actionable by creating draft PRs and notifying the original PR author.
2. What Changed (Where)
actions/sync-release-branches/sync-release-branches.sh: Overhauled conflict handling, added binary conflict resolution, and implemented GitHub PR commenting.actions/sync-release-branches/README.md: Updated documentation to reflect new conflict and notification behavior.3. How It Works
The
sync_to_targetflow now captures detailed error output from git/GitHub operations. Ifapply_merged_contentfails,create_conflict_prhandles binary files via--theirsand opens a draft PR. Finally,comment_on_original_prposts the failure details and the draft PR link back to the source PR.4. Risks
Github API rate limits or token permissions could cause
gh pr commentorgh pr createto fail, though these are wrapped in warnings to prevent blocking the entire pipeline.Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how