Post-1.0 thoughts: CHANGELOG.md #3071
Replies: 3 comments 9 replies
-
I like this idea, but is there a way to enforce that other than PR reviews? |
Beta Was this translation helpful? Give feedback.
-
I don't like PRs all updating a shared changelog file because based on past experience it leads to a lot of conflicts. I'd love to automate changelog creation. My main requirement here is that changelog entries are still hand-written. I don't think that auto-generated changelog entries based on commit messages, PR titles, etc. work well. I've at least never seen that work well. In my prior life we created and used go-changelog. That works really well, and I'm not against bringing it back in here except it's not super well adopted outside of HC. We wrote that because nothing that satisfied the above requirements really existed but maybe its been long enough that something exists? |
Beta Was this translation helpful? Give feedback.
-
At GitLab we used a bunch of different techniques over the years. The one we eventually settled on was using Git trailers to flag commits as "include in the changelog", with the subject line becoming the entry. While GitLab's approach requires a GitLab specific API, I ended up writing a standalone tool that essentially does the same thing, such that I could use it for my own projects. Here's an example commit, and here's what the resulting output looks like. The requirement of this approach is that developers at the very least write a decent subject line, and of course add the changelog trailer. This means people can't just submit a PR with 10 random commits with messages such as "one more attempt" or "now it works", unless a maintainer is willing to squash them together and rewrite the commit message. For GitLab this did require some extra effort early on, though looking back I think it wasn't necessarily any more difficult compared to adopting a different technique. |
Beta Was this translation helpful? Give feedback.
-
OK, so I know this is a little early, but I'd like to propose that after 1.0 is released any PR should include a patch to CHANGELOG.md that summarizes the changes being made. Maybe not every PR, but at least ones that have user-visible changes like new/removed config settings, config settings that have changed meanings, etc.
Beta Was this translation helpful? Give feedback.
All reactions