From a146035a2b1295b2d349fc1762c04cb4fb1e1f0b Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 6 Nov 2025 17:46:56 +0100 Subject: [PATCH] ci/github-script/bot: fix concurrency limit This was introduced as part of the hotfix PR to avoid hitting API rate limits - but the condition was wrong. It was supposed to trigger in all PR contexts, not only for the Test workflow. --- ci/github-script/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/github-script/bot.js b/ci/github-script/bot.js index 34abe96941fb..2b52955307ae 100644 --- a/ci/github-script/bot.js +++ b/ci/github-script/bot.js @@ -579,7 +579,7 @@ module.exports = async ({ github, context, core, dry }) => { // We'll only boost concurrency when we're running many PRs in parallel on a schedule, // but not for single PRs. This avoids things going wild, when we accidentally make // too many API requests on treewides. - const maxConcurrent = context.eventName === 'pull_request' ? 1 : 20 + const maxConcurrent = context.payload.pull_request ? 1 : 20 await withRateLimit({ github, core, maxConcurrent }, async (stats) => { if (context.payload.pull_request) {