From 1b951c565ea17defc1a70e40c2f7bd2cd0cbb495 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 2 May 2026 09:37:42 -0700 Subject: [PATCH] fix(github): raise Barnacle active PR limit --- scripts/github/barnacle-auto-response.mjs | 4 ++-- test/scripts/barnacle-auto-response.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/github/barnacle-auto-response.mjs b/scripts/github/barnacle-auto-response.mjs index 05cb481ad59..998dd1ad98f 100644 --- a/scripts/github/barnacle-auto-response.mjs +++ b/scripts/github/barnacle-auto-response.mjs @@ -1,6 +1,6 @@ // Barnacle owns deterministic GitHub triage and auto-response behavior. -const activePrLimit = 10; +const activePrLimit = 20; const thirdPartyExtensionMessage = "Please publish this as a third-party plugin on [ClawHub](https://clawhub.ai) instead of adding it to the core repo. Docs: https://docs.openclaw.ai/plugin and https://docs.openclaw.ai/tools/clawhub"; @@ -80,7 +80,7 @@ export const managedLabelSpecs = { }, "r: too-many-prs": { color: "D93F0B", - description: "Auto-close: author has more than ten active PRs.", + description: "Auto-close: author has more than twenty active PRs.", }, "r: too-many-prs-override": { color: "C2E0C6", diff --git a/test/scripts/barnacle-auto-response.test.ts b/test/scripts/barnacle-auto-response.test.ts index 860653425c1..37a050a1ca8 100644 --- a/test/scripts/barnacle-auto-response.test.ts +++ b/test/scripts/barnacle-auto-response.test.ts @@ -204,7 +204,7 @@ describe("barnacle-auto-response", () => { expect(managedLabelSpecs["r: support"].description).toContain("support requests"); expect(managedLabelSpecs["r: false-positive"].description).toContain("false positive"); expect(managedLabelSpecs["r: third-party-extension"].description).toContain("ClawHub"); - expect(managedLabelSpecs["r: too-many-prs"].description).toContain("ten active PRs"); + expect(managedLabelSpecs["r: too-many-prs"].description).toContain("twenty active PRs"); for (const label of Object.values(candidateLabels)) { expect(managedLabelSpecs[label]).toBeDefined(); @@ -495,7 +495,7 @@ describe("barnacle-auto-response", () => { ); expect(calls.createComment).not.toContainEqual( expect.objectContaining({ - body: expect.stringContaining("more than 10 active PRs"), + body: expect.stringContaining("more than 20 active PRs"), }), ); expect(calls.update).not.toContainEqual(expect.objectContaining({ state: "closed" }));