Skip to content
Snippets Groups Projects
Commit 2a5f1895 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: ignore onboarding branch when calculating pr hourly limit

parent dba57495
Branches
Tags v10.49.1
No related merge requests found
......@@ -24,8 +24,11 @@ async function writeUpdates(config) {
try {
prsRemaining =
config.prHourlyLimit -
prList.filter(pr => moment(pr.createdAt).isAfter(currentHourStart))
.length;
prList.filter(
pr =>
pr.branchName !== 'renovate/configure' &&
moment(pr.createdAt).isAfter(currentHourStart)
).length;
logger.info(`PR creations remaining this hour: ${prsRemaining}`);
} catch (err) {
logger.error('Error checking PRs created per hour');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment