I'm trying to setup RenovateBot. I've configured it to automerge all pull requests it makes, but it doesn't seem able to since we also have a repository policy to require at least one approval.
renovate.json
{ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:js-app" ], "baseBranches": ["main"], "lockFileMaintenance": { "enabled": true }, "automerge": true }
In the pull request, it says it will auto approve:
Renovate configuration 📅 Schedule: At any time (no schedule defined). 🚦 Automerge: Enabled. ♻️ Rebasing: Whenever PR is behind base branch, or rename PR to start with "rebase!". 👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired. This PR has been generated by Renovate Bot .
There are no errors in the RenovateBot logs
INFO: Repository started (repository=<ORG>/DependencyUpdater) "renovateVersion": "24.78.3" INFO: Dependency extraction complete (repository=<ORG>/DependencyUpdater) "baseBranch": "main", "stats": { "managers": {"npm": {"fileCount": 1, "depCount": 1}}, "total": {"fileCount": 1, "depCount": 1} } INFO: PR updated (repository=<ORG>/DependencyUpdater, branch=renovate/pin-dependencies) "pr": 5, "prTitle": "Pin dependency renovate to 24.78.3" INFO: Repository finished (repository=<ORG>/DependencyUpdater) "durationMs": 8798
Renovate is logged in as the Service User, which has the Contribute
, Contribute to pull requests
and Create branch
permissions.
How can I configure Renovate/Azure DevOps to allow these pull requests to be autocompleted?
My thinking is that I need to somehow make Renovate self-approve these pull requests (although I guess that could only work because I tell ADO to require at least one approval. if it needed 2 approvals then we'd be out of luck)
https://stackoverflow.com/questions/66574319/allow-renovatebot-to-auto-complete-pull-requests-in-azure-whilst-requiring-one-a March 11, 2021 at 07:21AM
没有评论:
发表评论