mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:00:43 +00:00
fix(github): raise Barnacle active PR limit
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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" }));
|
||||
|
||||
Reference in New Issue
Block a user