-
Notifications
You must be signed in to change notification settings - Fork 7
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
Enhance the functionality of the bump_version.sh
script
#169
Conversation
The token is optionally used for the build and prerelease actions to override the default values used by the semver Python package.
Since the replacement and commit of version change information is almost identical across the different logic flows it makes sense to DRY out the code.
Only retrieve the existing version information if the input to the bump_version.sh script isn't immediately invalid (if the script does not get 1-2 arguments).
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.
This looks like a nice improvement, but I want to get clarification on one thing before I approve.
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.
👍 👍
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.
I made one suggestion, which need not impede the approval of this pull request.
The team has come to the consensus that the `git push` should be at the discretion of the user. This both prevents needless GitHub Actions runs and ensures that the repository is updated when the user feels it is in an appropriate state. Co-authored-by: Shane Frasier <[email protected]>
🗣 Description
This pull request adds some functionality to the
bump_version.sh
script and DRYs out some of the logic.Note
If/when this pull request is approved I plan on porting the changes over to other skeletons that have a
bump_version.sh
script.💭 Motivation and context
I have used custom tokens for prerelease versions in some of my projects (
dev
instead ofrc
as an example) to better articulate what the version represents. I thought about it and determined that building the functionality into the script would be useful. While I was making the changes to support custom tokens I realized it would also make sense to do some general cleanup of the script.🧪 Testing
Automated tests pass. I verified that the script works as expected both with and without custom tokens for
build
/prerelease
actions. I also verified that other actions worked as expected.✅ Pre-approval checklist