-
Notifications
You must be signed in to change notification settings - Fork 14
ci(ipa): use release tags for IPA ruleset #889
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
Conversation
echo "Changelog diff: ${diff_changelog}" | ||
if [[ "${VERSION_BUMP}" == "false" && -n "${uncommitted_changes}" ]]; then | ||
if [[ "${VERSION_BUMP}" == "false" && -n "${diff_changelog}" ]]; then |
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.
Disallow any changes to changelog if version is not bumped
# Check CHANGELOG.md is the generated changelog result | ||
uncommitted_changes=$(git status --porcelain | grep "CHANGELOG.md" || echo "") | ||
|
||
if [[ "${VERSION_BUMP}" == "true" && -n "${uncommitted_changes}" ]]; then |
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.
When version is bumped, ensure generated changelog is the same as committed
"package": true, | ||
"commitPattern": "[a-z]+\\(ipa\\):", | ||
"startingVersion" : "0.0.1", | ||
"hideCredit": true, | ||
"tagPattern": "none", | ||
"startingVersion": "ipa-validation-ruleset-v1.0.0", | ||
"hideCredit": true, | ||
"tagPattern": "ipa-validation-ruleset-v\\d+\\.\\d+\\.\\d+", | ||
"tagPrefix": "ipa-validation-ruleset-v", | ||
"hideEmptyReleases" : true, | ||
"contributors": false, | ||
"changeCount": 0 | ||
"contributors": false |
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.
Adjust to use tag prefix for changelog
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 👍
Proposed changes
In the IPA release workflow, adding a step to create a release tag for the latest commit. The release tag follows the pattern
ipa-validation-ruleset-vX.X.X
to distinguish from the FOAS CLI release tags.These tags can then be used in the changelog generation to be able to parse which commits are included in which release.
Changes:
Added tag retroactively to first IPA release: https://github.com/mongodb/openapi/releases/tag/ipa-validation-ruleset-v0.0.1
Tested changelog with temporary tag on this branch.
Jira ticket: CLOUDP-337866