Add PR comment if automerge attempt fails #31869
Labels
core:automerge
Relating to Renovate's automerge capabilities
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:feature
Feature (new functionality)
Describe the proposed change(s).
If Renovate attempts a PR automerge, and the attempt fails (e.g. is rejected by the platform), then Renovate should add a PR comment with information about the failure. This comment should remain in place indefinitely, either as-is or potentially being updated if the failure reason changes.
Implementation suggestion:
enum
configuration optionautomergeFailureComment
, which defaults to "never", and also accepts "on-error".tryPrAutomerge()
function to return a result, either:automergeFailureComment
. If set to "never", no comment is added (same as today's functionality). If it's set to "on-error" then the worker should ensure a PR comment with title "Automerge failure notification" and include the failure description passed back from the platform.The text was updated successfully, but these errors were encountered: