Skip to content

Commit

Permalink
fix(vulnerability-alerts): skip hourly limit
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed May 19, 2019
1 parent 0096417 commit 546a21d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/workers/branch/index.js
Expand Up @@ -109,7 +109,12 @@ async function processBranch(branchConfig, prHourlyLimitReached, packageFiles) {
return 'needs-approval';
}
}
if (!branchExists && prHourlyLimitReached && !masterIssueCheck) {
if (
!branchExists &&
prHourlyLimitReached &&
!masterIssueCheck &&
!config.vulnerabilityAlert
) {
logger.info('Reached PR creation limit - skipping branch creation');
return 'pr-hourly-limit-reached';
}
Expand Down

0 comments on commit 546a21d

Please sign in to comment.