Skip to content

Changelog fragments: every landing puts the other open PRs' changelog entries in conflict with main #938

Closed

Description

@DrunkOnJava

Problem

Every pull request that changes behaviour adds its CHANGELOG.md entry at the same place: the top of ### Added (or ### Fixed) under [Unreleased]. So each landing leaves every other open PR with a changelog entry conflicting with main. The queue then skips them as DIRTY until someone merges main into each.

.gitattributes gives CHANGELOG.md the merge=union driver, but only a local git applies it. GitHub's mergeability check and its update-branch do not. Union merging also drops the blank line between two entries, so each local merge needs that repaired by hand.

Measured on 2026-10-24: #926 landing put #927 and #930 back into conflict, an hour after main had been merged into both. Every PR in the queue that day (#886, #887, #926, #927, #930) needed a local merge for the changelog alone.

Proposal

Changelog fragments, one file per pull request, assembled at release:

  • changelog.d/<pr>-<slug>.md, holding the entry exactly as it reads in the changelog today, with a front-matter line naming its section (Added, Fixed, Changed, Removed, Research).
  • A release step in RELEASE.md (and the release script, if there is one) assembles the fragments under the new version's heading, in section order and by PR number, and deletes them in the same commit.
  • A CI check that a pull request touching src/, docs/ or a CLI adds a fragment, or carries a no-changelog label.
  • merge=union removed from .gitattributes. CHANGELOG.md itself then changes only at a release.
  • A CONTRIBUTING.md paragraph and the PR template's checklist point at changelog.d/.

Sequencing

The change itself edits CHANGELOG.md, so it conflicts with every open PR that adds an entry. Land it when the queue is empty or nearly so. Merge main once into whatever is still open, and tell outside contributors with branches in flight (#934's branch adds an entry).

Not covered

docs/status.md, docs/release-1.0-criteria.md, README.md and the support matrix also conflict when two PRs edit the same row or paragraph. That happens less often, those edits differ per PR, and they stay as they are.

Activity

  1. added
    area:github
    priority:P2
    type:ci
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:githubpriority:P2type:ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions