Skip to content

chore: add sync-main.sh to automate epic/v3's recurring dist/ conflicts - #700

Merged
wesleyboar merged 2 commits into
epic/v3from
chore/sync-main-script
Aug 15, 2026
Merged

chore: add sync-main.sh to automate epic/v3's recurring dist/ conflicts#700
wesleyboar merged 2 commits into
epic/v3from
chore/sync-main-script

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Aug 15, 2026

Copy link
Copy Markdown
Member

Overview

Automates the mechanical part of syncing a dist/-untracked branch (e.g. epic/v3) with main.

Details

main commits dist/, epic/v3 doesn't, so every main commit touching dist/ produces a modify/delete conflict with a single correct resolution (keep it deleted). This script does that resolution, then rebuilds and untracks anything the merge re-added, and stops for a human on any other conflict.

Related

Changes

  • added bin/sync-main.sh
  • added AGENTS.md note pointing to it

Testing

  1. On a branch that doesn't commit dist/ (e.g. epic/v3), run bin/sync-main.sh
    (verified live against a disposable branch off epic/v3: correctly auto-resolved 10 dist/ modify/delete conflicts, rebuilt, and committed cleanly)
  2. Confirm it exits with an error and does nothing if run on a branch where dist/ isn't gitignored
  3. Confirm it exits with an error and leaves the merge unresolved if a non-dist/ conflict is present

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@wesleyboar
wesleyboar force-pushed the chore/sync-main-script branch from 1628c56 to 4976cd0 Compare August 15, 2026 00:22
@wesleyboar
wesleyboar changed the base branch from main to epic/v3 August 15, 2026 00:22
@wesleyboar
wesleyboar merged commit dacee75 into epic/v3 Aug 15, 2026
@wesleyboar
wesleyboar deleted the chore/sync-main-script branch August 15, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant