Skip to content

Commit 9778f3d

Browse files
wphillipmoorewphillipmoore-claude
andauthored
fix: sync prepare_release.py changelog conflict fix from canonical (#293)
Fixes #292 Co-authored-by: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent e6c8c4a commit 9778f3d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/dev/prepare_release.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,14 @@ def merge_main(version: str) -> None:
156156
This prevents CHANGELOG.md merge conflicts by ensuring the release branch
157157
has main's version of the changelog before git-cliff regenerates it.
158158
Uses a conventional commit message to satisfy commit-msg hooks.
159+
Uses ``-X ours`` to auto-resolve conflicts (only CHANGELOG.md should
160+
conflict, and git-cliff regenerates it in the next step).
159161
"""
160162
print("Merging main into release branch...")
161163
run_command(("git", "fetch", "origin", "main"))
162164
run_command((
163165
"git", "merge", "origin/main",
166+
"-X", "ours",
164167
"-m", f"chore: merge main into release/{version}",
165168
))
166169

0 commit comments

Comments
 (0)