Repository navigation
chore: sync dev with main - #13
Merged
Merged
Conversation
chore: bootstrap vigOS convention + CI debt cleanup
gerchowl
added a commit
that referenced
this pull request
Apr 15, 2026
The previous `Detect merge conflicts` step ran `git merge --no-commit --no-ff origin/main 2>/dev/null` and branched on exit code to set `conflict=true|false`. Two problems: 1. `2>/dev/null` hid git's stderr entirely, so whenever the step misfired we got no diagnostic — just a `(conflicts)` label on a PR that was actually clean. 2. `git merge --no-ff` has degenerate behavior when one side is an ancestor of the other. After a dev→main merge PR, `main`'s tip is a merge commit whose second parent is `dev`'s old tip, so `dev` is an ancestor of `main`. `git merge --no-ff` in this configuration can exit non-zero without an actual conflict, which the workflow then mislabels. This was observed live on PR #13 (the sync-back from the initial dev→main bootstrap): the PR had 0 files changed and was fully mergeable, but arrived labeled `merge-conflict` and titled "(conflicts)". Replace with `git merge-tree --write-tree origin/dev origin/main`, which does an in-memory trial merge without touching the working tree or index. Exit semantics: - 0 = clean merge, output is the merged tree SHA - 1 = conflicts, output contains conflict markers - anything else = real error (propagate) Stderr is now captured into a variable rather than dropped, so any future misbehavior is visible in the run log. This pattern is lifted from the current `vig-os/devcontainer/assets/workspace/.github/workflows/sync-main-to-dev.yml` upstream — confirming this isn't a novel fix but an already-corrected upstream implementation that our stale scaffolded copy never picked up. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This was referenced Apr 15, 2026
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.
Automated sync of
maintodevfound merge conflicts that require manual resolution.How to resolve
git fetch origin chore/sync-main-to-dev-7-2:chore/sync-main-to-dev-7-2 git checkout chore/sync-main-to-dev-7-2 git merge origin/dev # resolve conflicts git commit -S git push origin chore/sync-main-to-dev-7-2Once pushed, this PR will update and become mergeable.