-
Notifications
You must be signed in to change notification settings - Fork 128
*: bump-minor-version gh action #4084
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR introduces a new GitHub Actions workflow to automate the creation of minor version release branches and pull requests.
Key Changes:
- Adds
bump-minor-version.ymlworkflow that calculates the next minor version, creates a release branch, updates the version file, and creates a PR - Uses
mathieudutour/github-tag-action@v6.2to determine version bumps andpeter-evans/create-pull-request@v6to create PRs - Supports configurable version file paths with a default of
app/version/version.go
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Andrei Smirnov <pinebit@gmail.com>
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.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Andrei Smirnov <pinebit@gmail.com>
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.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 14 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4084 +/- ##
==========================================
- Coverage 56.43% 56.43% -0.01%
==========================================
Files 245 245
Lines 31116 31169 +53
==========================================
+ Hits 17561 17590 +29
- Misses 11248 11269 +21
- Partials 2307 2310 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
| - name: 4. Create Release Branch | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
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.
Where did we get this one from?
| echo "::notice file=$VERSION_FILE,line=18::Bumping version in $VERSION_FILE to $NEW_VERSION" | ||
|
|
||
| # Use sed to find the line and replace only the version string | ||
| sed -i -E "s/^(var version = ).*/\1\"$NEW_VERSION\"/" "$VERSION_FILE" |
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 will essentially update v1.8-dev to v1.8.0.
What we'd like so make it v1.8-rc, no?
The v1.8.0 we should make with a git tag and change the version in this file to v1.8.



Introducing
bump-minor-version.ymlGH action.category: misc
ticket: #3933