Skip to content

Commit 1b951c5

Browse files
committed
fix(github): raise Barnacle active PR limit
1 parent ac60704 commit 1b951c5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/github/barnacle-auto-response.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Barnacle owns deterministic GitHub triage and auto-response behavior.
22

3-
const activePrLimit = 10;
3+
const activePrLimit = 20;
44

55
const thirdPartyExtensionMessage =
66
"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 = {
8080
},
8181
"r: too-many-prs": {
8282
color: "D93F0B",
83-
description: "Auto-close: author has more than ten active PRs.",
83+
description: "Auto-close: author has more than twenty active PRs.",
8484
},
8585
"r: too-many-prs-override": {
8686
color: "C2E0C6",

test/scripts/barnacle-auto-response.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ describe("barnacle-auto-response", () => {
204204
expect(managedLabelSpecs["r: support"].description).toContain("support requests");
205205
expect(managedLabelSpecs["r: false-positive"].description).toContain("false positive");
206206
expect(managedLabelSpecs["r: third-party-extension"].description).toContain("ClawHub");
207-
expect(managedLabelSpecs["r: too-many-prs"].description).toContain("ten active PRs");
207+
expect(managedLabelSpecs["r: too-many-prs"].description).toContain("twenty active PRs");
208208

209209
for (const label of Object.values(candidateLabels)) {
210210
expect(managedLabelSpecs[label]).toBeDefined();
@@ -495,7 +495,7 @@ describe("barnacle-auto-response", () => {
495495
);
496496
expect(calls.createComment).not.toContainEqual(
497497
expect.objectContaining({
498-
body: expect.stringContaining("more than 10 active PRs"),
498+
body: expect.stringContaining("more than 20 active PRs"),
499499
}),
500500
);
501501
expect(calls.update).not.toContainEqual(expect.objectContaining({ state: "closed" }));

0 commit comments

Comments
 (0)