ci: exclude app PRs from active limit

This commit is contained in:
Shadow
2026-04-30 18:32:23 -05:00
parent 5a3b75de33
commit ef799fd57a
3 changed files with 62 additions and 4 deletions

View File

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