-
Notifications
You must be signed in to change notification settings - Fork 2.3k
gha: enforce CHANGELOG.md entries for PRs #5047
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
| patched kernels (such as the Tencent kernels). (opencontainers/cgroups#46, | ||
| opencontainers/cgroups#50) | ||
|
|
||
| ### Changed ### | ||
| - CI: All PRs now require a corresponding `CHANGELOG.md` change be included, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is likely to just result in making the changelog lengthy and unreadable.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe just migrate the changelog to wiki so that we can add changelog items without submitting PRs
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How will we make sure it gets updated on time? The current situation is that PRs get merged and then you need to figure out what to write for the changelog months later. I would prefer to not have it be mandatory but it seems we are nowhere near consistent enough to enforce this through regular reviews. For dependabot or minor PRs, I can adjust this CI job to allow-list PRs with special tags or by special committer emails... One other option would be to enforce having a "for the changelog" section of the PR but then we would probably want to script collating them...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree we have to add this somehow, and I guess adding the entry directly to CHANGELOG.md seems most straightforward. The downsides are
Perhaps we can try to enforce this manually for now?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've seen other projects avoid the merge conflict problem by using a directory and making a new file for each change. This has some extra overhead for everyone though, as the filenames are mean to be the PR number (submitters need to re-commit with the right PR number and we will still have to collate them). For the dependabot PR issue we can make it a non-required CI job and so we can merge dependabot PRs but human PRs will have a failure so the submitter can proactively fix the issue.
I think it'd be too easy to forget and having it be a CI job means that submitters can proactively fix it without needing us to remember to tell them. |
||
| which should increase the quality and accuracy of our changelogs going | ||
| forward. (#5047) | ||
|
|
||
| ## [1.4.0-rc.1] - 2025-09-05 | ||
|
|
||
| > おめェもボスになったんだろぉ? | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependabot PRs should be excluded?
PRs with some directive like
[trivial]in title or/trivialin body should be excluded too?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe reusable:
https://github.com/moby/moby/blob/1da6517e1a4381297e56862f6f373f265c28d102/.github/workflows/validate-pr.yml#L34-L70