Skip to content

chore: merge CHANGELOG.md with the union driver - #145

Closed
HMarzban wants to merge 1 commit into
mainfrom
chore/changelog-union-merge
Closed

HMarzban wants to merge 1 commit into
mainfrom
chore/changelog-union-merge

Conversation

@HMarzban

Copy link
Copy Markdown
Contributor

Summary

Split out of #141. .gitattributes now sets CHANGELOG.md merge=union, so merging origin/main into a branch keeps both sides' Unreleased entries instead of conflicting every time.

Checked:

  • Locally. Two branches, each adding an Unreleased entry, merged cleanly with union. Without union the same merge conflicts.
    • Both entries survive in order.
    • The blank line between them is lost (- B thing. is followed directly by ### Entry A). That is still valid CommonMark, because an ATX heading ends the list.
  • On GitHub, with throwaway draft test: throwaway docs-only PR (do not merge) #142 (base and head each add an entry). GitHub reports CONFLICTING: its mergeability check and merge button ignore merge drivers.
    • So the benefit is the local git merge origin/main that agents run to update a branch. After that push, GitHub sees no conflict.
    • The merge queue starts from the PR's merge result, so a queued PR needs that local merge first.

Caveats (documented in .gitattributes, tests/TESTING.md and AGENTS.md):

  • A blank line between two entries can go missing.
  • A line edited on both sides is kept twice.
  • Read the merged section before committing.

No CI or app change. Path gating, the other half of the planned third PR, needs the aggregate gate job from #141, so it stacks there.

Test plan

🤖 Generated with Claude Code

Parallel pull requests each add an Unreleased entry; merging origin/main
into a branch now keeps both instead of conflicting.
@HMarzban

Copy link
Copy Markdown
Contributor Author

Dropped. GitHub's merge check ignores merge drivers, so this would only help a local git merge origin/main, and there union can corrupt the changelog without warning. When both sides edit the same line, it keeps both versions with no conflict (tested: two edits of one Unreleased bullet came out as two contradictory bullets). It can also drop the blank line between entries. A visible conflict is safer than a silent bad merge. Recorded in #141.

@HMarzban HMarzban closed this Nov 22, 2026
@HMarzban
HMarzban deleted the chore/changelog-union-merge branch November 22, 2026 07:48
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