-
Notifications
You must be signed in to change notification settings - Fork 10
Automatic Changelogs #69
Comments
I like the commit history option, though I have the same concern regarding fixing / updating changelog data. (Though I may not be the right person to opine on this, since I write long commit messages) RE: File approach, is it possible for a github bot to read the PR message, and then make an additional commit when merging the PR? Then we could have the github bot do the file thing you described, and then have the tool aggregate it all together. (Making new files like that seems like more of a pain to me then dealing with the merge conflicts we have right now) |
Can you explain why? It's effectively the same amount of work as opening CHANGELOG.md and making edits |
Good point, I misread the file proposal and thought it said PR number (not issue number). I didn't like the idea of having to figure out the PR number / making everything at least two commits, but since its issue number its nbd. However we have lots of PR's without assoc. issue numbers, not sure how those would update the changelog. |
With proposal 1, how does this integrate with squashing, also this will require devs to make sure commits are very precise in their nature (i.e. fix bug...and also cleanup a lot of slightly unrelated godocs). This can be done with interactive committing, but maybe I'm over thinking that. I do like proposal 2. In regards to |
I don't really think the merge conflicts are that annoying of a problem. I do agree that changelog entries going into the wrong section is a big problem. With that in mind, I think the following may be easier. |
I'm more leaning towards Proposal 1 - it feels sloppy to have a bunch of loose proposal files which need to get deleted by some CI on merge (or manually deleted at some point! yuck) Some comments I'd like to make:
As per these points, I think the |
Interesting. Seems other repos do this too. Their squashed commit contains a very verbose |
We should never have PRs without associated issue numbers. It's basically a requirement that you open an issue describing the change you want to make before opening a PR.
One way or another there will be manual work to review changelog and fix things since the automation will never be perfect here. It seems more manageable to have a tool that reads a bunch of files and then deletes them than one that reads commits because the commits are immutable so we can't update entries as we go, unlike with files.
Not sure what you're saying here. The problem is that commits are immutable, so if in the course of the commits, we need to modify the same changelog entry multiple times (eg. we change the way a feature is implemented multiple times before we release, or we add a feature and then remove it). If all the entries are in commits, we either need new syntax to say "ignore old entry and use this one" which sounds very complex or we need to wait until its time to generate the changelog and then fix the duplication issues. Seems much cleaner and simpler to me to just have a bunch of files that can be updated as we go.
Not exactly sure, seems we have to be careful with the squashing or very precise in the commits. I think using the commits is a bit too fragile right now.
Whenever a maintainer feels like it. If there's lots of changes, it can be intermittent. Otherwise it can all happen right before release. This is another reason why files are better than commits here because you can consolidate into a single changelog as you go more easily. |
This is definitely not whats happening right now. There are many PR's without assoc. issues. I don't think most of the above needed a new issue either. (That would increase development time for small PR's, which I think should be fast) Also any thoughts on my proposal? (tendermint/tendermint#1979) |
@ValarDragon Interestingly, There are PR's which close multiple issues - so we need to make multiple changelog entries for a single PR - which should be easy.
Oh I understand, I was referencing the entire historical changelog - you're talking about intermediate modifications to the same entry - Yeah I agree that it's nicer to just modify a file where each file represents one changelog entry, we can avoid merge conflicts. Koodos! let's do it |
Changelogs
Requirements
Problem
The obvious but naiive solution is to update the CHANGELOG.md with every PR. This has problems:
Ideal
But this is probably too extreme of a discipline.
Proposal 1 - Use Commit History
#changelog:<type>:<issue>
will be included in the changelog<type>
is one ofbreak
,feat
,improve
,fix
<issue>
is the issue number, or hyphen separated list of them#changelog:<type>:<issue>
Pros
Cons
Proposal 2 - Use a Directory of Unique Files
<author>/<issue>
where<author>
is the author of the PR and<issue>
is the issue number being addressed.bucky/1546-1332-1102
Pros
Cons
Tool
clg
for change-log-generatorclg <version>
will output a changelog formatted like CHANGELOG.mdEnforcement
Both proposals can be enforced through rules in testing
Notes
git log 06216c1f^..06216c1f --oneline
to print all commits involved in the merge commit `06216c1fgit log --oneline --merges --first-parent <version>..HEAD
to get the list of all merge commits to the given branch sinceSummary
I'm leaning towards using files. While commit history is the ideal, its hard to realize the ideal and its much more difficult to fix/update the changelog data since they're contained in commits. Using files makes it easiest to find the data and to continuously update it in an auditable way if need be
The text was updated successfully, but these errors were encountered: