Skip to content

ci: resolve version-file conflicts in the back-merge to production's side - #320

Merged
riglar merged 2 commits into
devfrom
ci/back-merge-version-conflicts
Nov 13, 2026
Merged

riglar merged 2 commits into
devfrom
ci/back-merge-version-conflicts

Conversation

@riglar

@riglar riglar commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

What & why

The 5.12.1 release's back-merge job failed on conflicts in package.json, server.json and CHANGELOG.md, and had to be built by hand (#319). Each conflict was only the version line.

Back-merges into dev are squashed, so git never records that dev already took production's version change. The next release then edits the same line on production, and git sees two separate edits. This is likely to happen on most releases.

Now, when the merge conflicts only in those three files, the job takes production's side, which holds the version just released, and carries on to open the PR. A conflict in any other file still stops the job for a human, as before. CLAUDE.md notes this under Releases.

Type of change

  • chore / ci / build / test — tooling, no user-facing change

How to test

I ran the changed step's script against the real origin/dev and origin/production after 5.12.1. It resolved the three conflicts and produced the same diff against dev as the hand-built #319: only the version files and the 5.12.1 changelog section. I also checked the filter by hand: a conflict list containing any other file (for example src/x.ts or pnpm-lock.yaml) stops the job.

The Release workflow runs from production's copy of this file, so this takes effect from the release after it reaches production.

🤖 Generated with Claude Code

…side

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread .github/workflows/release-please.yml Resolved
…other edits

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@riglar
riglar merged commit adc2769 into dev Nov 13, 2026
11 checks passed
@riglar
riglar deleted the ci/back-merge-version-conflicts branch November 13, 2026 12:34
finalerock44 added a commit that referenced this pull request Nov 13, 2026
production gained the 5.12.1 hotfix (#318) after this branch was built, so it no longer merged. The second parent is the release rebuilt the usual way: dev at 68a8250, production merged in with the release-please.yml and CLAUDE.md conflicts resolved to dev's side (#320), and a chore: release 5.13.0 commit. This merge takes that tree as-is, so the branch moves forward instead of being force-pushed.
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