- Notifications
You must be signed in to change notification settings - Fork 24
CLOUDP-295785 - GitHub Actions workflow that checks for changelogs #263
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
818f617 to a81ee10 Compare 8eed26e to 63dd721 Compare 222a674 to f35fa90 Compare f35fa90 to a8cedd0 Compare c4067fb to d746a98 Compare 3866bc9 to d6e789d Compare m1kola requested changes Jul 16, 2025
Contributor
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.
LGTM in general. Blocking just so that we double check that we do not expose secrets to malicious PRs.
6389b26 to d956a13 Compare m1kola approved these changes Jul 17, 2025
5c5789d to 0c494e0 Compare MCK 1.3.0 Release NotesOther Changes
|
0c494e0 to 0286ddf Compare viveksinghggits approved these changes Jul 21, 2025
anandsyncs approved these changes Jul 21, 2025
d55f322 to 0d02f6f Compare # Conflicts: # .github/pull_request_template.md # requirements.txt # scripts/release/changelog.py # scripts/release/changelog_test.py # scripts/release/conftest.py # scripts/release/create_changelog.py # scripts/release/release_notes.py # scripts/release/release_notes_test.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Summary
This pull request introduces workflows to automate the validation and generation of release notes. It includes new script
scripts/release/check_changelog.pyfor validating changelog file in PRs, created GitHub Actions workflow that calls validation script and another one to create release notes preview.GitHub Actions Workflows
.github/workflows/preview_release_notes.ymlto generate and preview release notes for pull requests and pushes tomasterandrelease-*branches..github/workflows/require_changelog.ymlto validate the inclusion of changelog entries in pull requests. The requirement can be skipped by labelling PR withskip-changelog. Underneath the workflow usesscripts/release/check_changelog.pyscript..github/actions/setup-ubuntu-host/action.ymlto set up an Ubuntu runner with Python and necessary dependencies for workflows.Proof of Work
Changelog requirement validation
When changelog exists -> https://github.com/mongodb/mongodb-kubernetes/actions/runs/16319921866/attempts/1#summary-46094783625
When changelog does not exist -> https://github.com/mongodb/mongodb-kubernetes/actions/runs/16322098714/attempts/1#summary-46102343972
When changelog does not exist and the
skip-changeloglabel was added -> https://github.com/mongodb/mongodb-kubernetes/actions/runs/16322136466/attempts/1#summary-46102478174Release notes generation
Comment with Release Notes preview -> #263 (comment). GHA job summary -> https://github.com/mongodb/mongodb-kubernetes/actions/runs/16322098704/attempts/1#summary-46102343937
Checklist
Reminder (Please remove this when merging)