mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
fix: don’t attempt automerge if push protection enabled (github)
This commit is contained in:
parent
ecdcd9df4f
commit
9e47738e8e
1 changed files with 2 additions and 1 deletions
|
@ -991,8 +991,9 @@ async function mergePr(prNo, branchName) {
|
||||||
if (config.pushProtection) {
|
if (config.pushProtection) {
|
||||||
logger.info(
|
logger.info(
|
||||||
{ branchName, prNo },
|
{ branchName, prNo },
|
||||||
'Branch protection: Attempting to merge PR when push protection is enabled'
|
'Branch protection: Cannot automerge PR when push protection is enabled'
|
||||||
);
|
);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
// istanbul ignore if
|
// istanbul ignore if
|
||||||
if (config.prReviewsRequired) {
|
if (config.prReviewsRequired) {
|
||||||
|
|
Loading…
Reference in a new issue