From 1e4688a58490212ceff9f581461bb543017d7e2e Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Sat, 21 Mar 2026 20:19:29 -0500 Subject: [PATCH] CI: exempt bad-barnacle from dirty auto-close --- .github/workflows/auto-response.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-response.yml b/.github/workflows/auto-response.yml index 69dff002c7b..f6c527d1e37 100644 --- a/.github/workflows/auto-response.yml +++ b/.github/workflows/auto-response.yml @@ -398,11 +398,13 @@ jobs: const invalidLabel = "invalid"; const spamLabel = "r: spam"; const dirtyLabel = "dirty"; + const badBarnacleLabel = "bad-barnacle"; const noisyPrMessage = "Closing this PR because it looks dirty (too many unrelated or unexpected changes). This usually happens when a branch picks up unrelated commits or a merge went sideways. Please recreate the PR from a clean branch."; if (pullRequest) { - if (labelSet.has(dirtyLabel)) { + // `bad-barnacle` exempts PRs that Barnacle incorrectly marked dirty. + if (labelSet.has(dirtyLabel) && !labelSet.has(badBarnacleLabel)) { await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo,