-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New approach to changelog management #6711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@go-gitea/maintainers pinging for feedback. |
Another alternative is https://www.conventionalcommits.org/ although this would require more effort on the effort of developers worrying about their commits messages, and might need to have devs squash their commits (so the squash/merge commit into master isn't cluttered with WIP commits). Edit: I should note, I am for switching to GitLab style changelog rather than enforcing a commit style (or PR title style) because it would allow a cleaner changelog, as some PRs are minor updates for others and probably don't need an entry in the changelog. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I see, the YAML will be part of the PR. I'm not comfortable with such approach:
I don't know if there can be some editorial action before creating the final changelog, but there should be one anyway, since the importance of some PRs is contextual to what other PRs were included. So, a final revision of the changelog is somewhat unavoidable. |
This issue may be a partial duplicate of #505 as well... |
Now that I've read through #505, I see we would even have a potential starting point with https://gitlab.com/bkc/changelogger |
Not necessarily. Do all quick fixes need a changelog entry? Currently they are all included, but perhaps they don't need to be?
We could always make suggestions, or even add a changelog entry for them after the fact if needed.
I don't understand?
Perhaps, but that also required the author to change their PR title.
I agree, it would just be nice to have a better consensus before we make a changelog PR. All that being said, I'm not all aboard the Gitlab train. I just think something should change, as our current process can be fickle. |
I mean, people that don't clone Gitea's repo but use the online editor to PR a quick fix. Those PR's are single file commits, usually. Granted, they can add more files later. |
Ah, I see. That would fall under the semi-related "do those really need to be in the changelog in the first place?" discussion imo |
It seems to me that we should decide first on some kind of editorial rules on what needs to make it to the change log and how it should look like before deciding how that is actually implemented. 🤔 |
imho easiest and best way is to mark all PR's needed to be included in changelog to be marked with changelog label. We should fix PR title to be descriptive for changelog before merging |
I agree with @lafriks we can even easely edit title and labels of PR merged (not the commit) so we can also add PR by adding changelog label and edit title if not explicit. We could do a quick review of un-labeled changelog PR before release to see if some are missing. |
How about make rules for PR's title and create a bot to check that and deny the merge before it matched the rules? And of course the bot could also check approvals count and add some labels. Teabot I think that should be a better method. The bot could be a drone plugin and could be the first step of gitea's drone file or a standalone service which could accept webhooks. |
Since now is 9102, we should hire more bots to help us development. :( |
I am fine with the above options as long as the mergers/owners are willing to do the work since we cannot help with those. Don't want you guys to have to do everything manually yourselves 😄 |
@jolheiser That's github's limitation. After we moved to gitea.com, we have a issueManager team then more maintainers could help to do these work. 😄 |
❗❗❗ That's right! ❗❗❗ |
No longer an active member, but since my tool (and therefore I) got mentioned I'll throw in my 2 cents as well 🙂
As a project grows larger, its changelog will grow with it. Being selective about what goes in it is not going to change that. But not including quickfixes/type-Os would be a good start 🙂
This would still need to happen at some stage, whether its done like it is now, or in the PR itself (Owners can edit title and body), or in a YAML-file inside the commits, would not change this fact.
Someone needs to write it in understandable English, this could be done by the Contributor, or by an Owner (who has push-rights), or by a Bot (controlled by some factors). And there would be no need for contributors to install a new tool, they'd only fill out a YAML-file. The tool would be used by maintainers/owners when they make the Release.
Not necessarily, Owners can change the PR title as well. This could be further setup with a bot (say
PRs will extremely rarely have its changelog-worthyness changed after it's merged. When the PR is up for merge, it should be obvious whether it needs a changelog entry for it or not 🙂
This would be nice even if you go the YAML-route, have CI check if there's a changelog-file in the PR if [changelog] tag is set.
This should be done even if you don't use PR title/body for changelogs. As it makes things more searchable from the PR-list 😉 |
As a discussion, I think we can close this one. If anyone has a better method for the changelog, he can create another proposal issue. |
Currently, our approach to changelogs is working, however as we continue to have more PRs it starts to become unwieldy.
As an example, more often than not when making a changelog/blog post, each commit/PR needs to be checked for proper capitalization, wording, etc.
Currently we use our internal changelog "generator" which relies on hitting GitHub's API and puts PRs into piles based on tags and uses their title.
This issue is meant to discuss possible alternatives and whether they are needed or would provide benefit to the project.
As more alternatives are mentioned, I can add them to the below list.
Current proposed alternatives
Gitlab's approach to changelogs, requiring each commit/PR to be accompanied by a YAML file describing the change, which would then be used to generate the changelog.
Conventional Commits, which would require specifically styled commit messages that would be used to generate the changelog.
The text was updated successfully, but these errors were encountered: