Skip to content

towncrier snafu on multiline changelog entry #13828

Closed

Description

@drammock

#13759 had a 2-line changelog entry:

https://github.com/mne-tools/mne-python/pull/13759/changes#diff-47b49dd1f9dbf39ad47972175dc870bce0d2fe2d551caee3914c575cb56071b1R4

The two lines got separated in the generated output (https://mne.tools/dev/changes/v1.12.html#bugfixes)

  • first line is near the bottom of Bugfixes section (4th up from the end)
  • second line (newcontrib part) ended up combined with a different changelog entry (5th one from top of Bugfixes section, which was Benedikt Ehinger's PR)

We should:

  1. fix the changelog
  2. figure out how/why it happened
  3. prevent it recurring in future

Activity

  1. larsoner commented on Apr 9, 2026

    @larsoner
    Member

    The two lines got separated in the generated output (https://mne.tools/dev/changes/v1.12.html#bugfixes)

    This is because I manually moved all :newcontrib: to the top of the changelog, and did a bad job.

    To prevent it from happening in the future, we could (1) be more careful, or (2) change how towncrier sorts the changelog to automatically put any with :newcontrib: at the top. No idea if that's actually doable / if towncrier is that flexible...

  2. drammock commented on Apr 9, 2026

    @drammock
    MemberAuthor

    I was thinking maybe enforce that changelog entries be only one line, but that seems overly restrictive... most of the time it would be fine but occasionally we want to do something fancy. So I guess +1 for investigating whether towncrier sort can be customized, if someone wants to look into it.

  3. PragnyaKhandelwal commented on Apr 10, 2026

    @PragnyaKhandelwal
    Contributor

    I noticed another small rendering quirk in the 1.12.0 changelog.... several entries have duplicate PR links at the end (for example, #13706 and #13566). It seems like the towncrier generation might be double-appending the reference. Just wanted to flag this here since it's related to the other changelog formatting issues!

    Image Image
  4. tsbinns commented on Apr 10, 2026

    @tsbinns
    Member

    I noticed another small rendering quirk in the 1.12.0 changelog.... several entries have duplicate PR links at the end (for example, #13706 and #13566).

    The changelog entries for #13706 and #13566 had links to the PRs within the changelog entries, however they shouldn't be added there because towncrier automatically creates a links to this.

    Could try enforcing there is no gh link within the changelog, but could there be cases we want to include a reference to a previous PR?

  5. PragnyaKhandelwal commented on Apr 10, 2026

    @PragnyaKhandelwal
    Contributor

    Ah, I see. That makes total sense, @tsbinns. I'll make sure to omit the manual PR reference in future towncrier fragments to let the automation handle it. Thanks for clarifying the root cause!

  6. larsoner commented on Apr 10, 2026

    @larsoner
    Member

    I'll open a PR to fix the changelog entries

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions