Skip to content

Commit

Permalink
feat: optional review when pr came from renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed May 20, 2019
1 parent fda6230 commit 0561ec3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index-node10-dev.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index-node10-dev.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-node10.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index-node10.cjs.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/pr-handlers/actions/updateStatusCheckFromLabels.ts
Expand Up @@ -99,7 +99,10 @@ export const updateStatusCheckFromLabels = (
}

if (!repoContext.hasApprovesReview(labels)) {
if (repoContext.config.requiresReviewRequest) {
if (
repoContext.config.requiresReviewRequest &&
!pr.head.ref.startsWith('renovate/')
) {
return createFailedStatusCheck(
context,
pr,
Expand Down

0 comments on commit 0561ec3

Please sign in to comment.