mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:30:47 +00:00
ci: exclude app PRs from active limit
This commit is contained in:
@@ -492,6 +492,30 @@ describe("barnacle-auto-response", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("removes stale PR-limit labels from GitHub App-authored PRs", async () => {
|
||||
const { calls, github } = barnacleGithub([file("README.md")]);
|
||||
|
||||
await runBarnacleAutoResponse({
|
||||
github,
|
||||
context: barnacleContext(
|
||||
{
|
||||
user: {
|
||||
login: "renovate[bot]",
|
||||
type: "Bot",
|
||||
},
|
||||
},
|
||||
["r: too-many-prs"],
|
||||
),
|
||||
core: {
|
||||
info: () => undefined,
|
||||
},
|
||||
});
|
||||
|
||||
expect(calls.removeLabel).toContainEqual(expect.objectContaining({ name: "r: too-many-prs" }));
|
||||
expect(calls.createComment).toEqual([]);
|
||||
expect(calls.update).toEqual([]);
|
||||
});
|
||||
|
||||
it("still adds candidate labels to broad contributor PRs", async () => {
|
||||
const { calls, github } = barnacleGithub([
|
||||
file("ui/src/app.ts"),
|
||||
|
||||
Reference in New Issue
Block a user