fix(github): raise Barnacle active PR limit

This commit is contained in:
Vincent Koc
2026-05-02 09:37:42 -07:00
parent ac607044f1
commit 1b951c565e
2 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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" }));