Skip to content

Improved changelog procedure #7154

@Manishearth

Description

@Manishearth

Currently the changelog is written by running git log on each folder and copying out important-looking commits, while verifying that other commits are

It would be nice if the changelog were easier to automatically compile. The person best suited for writing a changelog entry is the PR author (for authors who are contributors), but having many people edit the same file at once is undesirable.

Clippy has a nice procedure where there is a CI task that enforces changelog: ... in the PR body. By default all PRs are seeded with changelog:, and if a PR does not go into the changelog we say changelog: none to silence the CI.

In our case we'd probably want something like

changelog (icu_calendar): Added HijriFoo
changelog (icu_datetime): Fixed Hijri formatting across calendars

so a single PR may generate multiple changelog entries.

Reviewers would have to verify that the changelog entry in the PR body is correct. Reviewers are encouraged to edit it directly and improve it, or add one to contributor PRs.

A thing we can do is even occasionally compile these into a partial changelog mid-release-cycle (similar to what I did for 2.1, I left a comment saying the changelog was accurate up to $githash). Really helpful for release planning to just have an early idea of what the release will look like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions