-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Automerge despite failing or pending checks #31783
Comments
Default setting for
|
There's a difference between What's more likely is that developers will add a new type of check [for example, "end-to-end tests" or a new "linting" status_check, or a PR name formatter], and forget to mark that new type of check as required. |
I would expect there to be a 4th option |
You've convinced me. No "auto", instead that option can be |
Describe the proposed change(s).
For GitHub in particular, it's possible to define required status checks for base branches, which means that merging is allowed even if non-required checks are pending or even failed. Today Renovate is conservative and does not attempt to automerge unless all checks have passed.
We could support a new configuration option
automergeWhen
, with these values:"all-passed"
: this matches todays behavior. Only attempt to automerge if all checks are passed"auto"
: if Renovate detects required checks, it will try automerging if those specifically have all passed, even if other checks are pending or failed. Otherwise default toall-passed
"always"
: Renovate will ignore checks, and always try to automerge (equivalent to today'signoreTests=true
. This means that either (a) users want to immediately automerge without checks, or (b) they rely on branch protectionWe'll need to do some research to decide if this logic is best implemented in the worker layer or implemented separately per-platform. We already have a related concept of
internalChecksAsSuccess
which is implemented completely at the platform layer.The text was updated successfully, but these errors were encountered: