Skip to content
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

Upgrade Golang versions automatically when new patch version is released #86

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions renovate-base.json5
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@
// The packageRules are overrided/merged, therefore this rule needs to set automerge to false explicitly.
"automerge": false,
},
{
// go.mod golang-version is not updated by default, check <https://github.com/renovatebot/renovate/issues/16715>.
// Enable golang version bumps in 'go.mod' but disable auto-merge.
"matchDatasources": ["golang-version"],
// We always merge patch updates for golang.
"matchUpdateTypes": ["patch"],
// Exclude any dependencies which are pre-1.0.0 because those can make breaking changes at any time
// according to the SemVer spec.
"matchCurrentVersion": "!/^(0|v0)/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this doesn't apply to Go versions since they are all already v1 as of now, but good to have it around nonetheless 👌

// Renovate will do the following when detecting a new dependency bump:
"automerge": true,
"automergeType": "pr",
"pruneBranchAfterAutomerge": true
},
{
// Group the Dockerfile go bump ("golang" package) and the go.mod go bump ("go" package) together
// check <https://docs.renovatebot.com/configuration-options/#groupname> for details about grouping.
Expand Down
Loading