我正在尝试设置RenovateBot。我已经将它配置为自动合并它发出的所有拉取请求,但它似乎无法做到,因为我们还有一个存储库策略要求至少一个批准。
更新.json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:js-app"
],
"baseBranches": ["main"],
"lockFileMaintenance": { "enabled": true },
"automerge": true
}
在拉取请求中,它说它将自动批准:
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 .
RenovateBot 日志中没有错误
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 以具有Contribute
、Contribute to pull requests
和Create branch
权限的服务用户身份登录。
如何配置 Renovate/Azure DevOps 以允许自动完成这些拉取请求?
我的想法是,我需要以某种方式让 Renovate 自行批准这些拉取请求(尽管我想这只能起作用,因为我告诉 ADO 至少需要一次批准。如果它需要 2 次批准,那么我们就不走运了)