Set up the Github autoMergeRequest on each retry/rebase if it is not already set up. #28789
Replies: 2 comments
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsRead the Renovate docs, troubleshooting, self-hosted to learn how to find the logs. Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Please provide the full logs for a run where the branch is rebased and you'd want it re-enqueued but it's not |
Beta Was this translation helpful? Give feedback.
-
Tell us more.
To merge a branch with Renovate with
"platformAutomerge": true
in Github, the target branch needs to have branch protection on the target branch enabled. Otherwise, Renovate won't add a autoMergeRequest to the Pull Request.The autoMergeRequest is only executed if branch protection exists when opening the pull request. If the pull request was opened at a time when there was no branch protection on the target branch, the autoMergeRequest will not be initiated. Even if branch protection is added in the meantime and a retry/rebase is performed, the autoMergeRequest is still not executed and the PullRequest will not be automerged.
To check this, you can use the command
gh pr view <number> --json autoMergeRequest
.Maybe it is useful to add the autoMergeRequest on a retry/rebase if it is not setup.
Here are some log snipped from my Self Hosted Renovate:
Successful automerge
Error with a PR which renovate wants to merge, but can't because the autoMergeRequest is no set
PS: i used the image:
renovate/renovate:37.281-full
for self hostingBeta Was this translation helpful? Give feedback.
All reactions