Skip to content

Commit

Permalink
Add packageRule for rollbackPrs
Browse files Browse the repository at this point in the history
  • Loading branch information
niki4 authored Jan 30, 2025
1 parent 9c98763 commit 19e66a7
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@
],
"packageRules": [
{
"description": "Automerge only patch version updates (except versions 0.x as they could have breaking changes)",
"description": "Create PRs to roll back Go module if the current version is not found in the registry.",
"matchManagers": ["gomod"],
"rollbackPrs": true
},
{
"description": "Automerge patch version updates for Go modules (except versions 0.x as they could have breaking changes)",
"matchManagers": ["gomod"],
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "!/^(v?0)/",
"automerge": true
}],
"automerge": true,
"addLabels": ["renovate-automerge"]
}
],
"postUpdateOptions": [
"gomodTidy",
"gomodUpdateImportPaths"
],
"rollbackPrs": true
]
}

0 comments on commit 19e66a7

Please sign in to comment.