Feature request: matchAutomerge in packageRules #44289
jlssmt
started this conversation in
Suggest an Idea
Replies: 1 comment
-
|
I understand the need but There is a existing solution for this if you use {
"packageRules": [
{
"matchJsonata": ["automerge = false"],
"addLabels": ["deploy-preview"]
}
]
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
We want to add a label (e.g.
deploy-preview) to all PRs that need manual review, but skip it for automerge PRs to avoid unnecessary CI deployments.Right now there is no clean way to do this. The only option is to set
labels: ["deploy-preview"]globally and then override withlabels: []in every single automerge rule. That gets messy fast, and it also does not cover automerge configured in repo-levelrenovate.json5files.Suggestion
Add
matchAutomergeas a valid packageRule selector:{ "packageRules": [ { "matchAutomerge": false, "addLabels": ["deploy-preview"] } ] }Would make it possible to apply labels/settings only to PRs that wont automerge, without having to enumerate every automerge rule.
Beta Was this translation helpful? Give feedback.
All reactions