Skip to content

πŸ› Bug: Changelogs have out-of-order headingsΒ #915

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

Generated CHANGELOG.md files should follow https://www.w3.org/WAI/tutorials/page-structure/headings/:

Skipping heading ranks can be confusing and should be avoided where possible: Make sure that a <h2> is not followed directly by an <h4>, for example. It is ok to skip ranks when closing subsections, for instance, a <h2> beginning a new section, can follow an <h4> as it closes the previous section.

There should only be one h1 (# ...), at the start of the page

Actual

Generated changelog headings go out of order and have multiple h1s.

Example: https://github.com/KATT/tupleson/blob/55157ef4d6e14ceb6ddf1c0f8ef20a2c51cd6c7b/CHANGELOG.md

Additional Info

I'd previously fixed this in #107 -> #109. But changelog generation has since moved to release-it.

Mentioned by @KATT too - thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this!type: bugSomething isn't working :(

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions