From bb85a436ce822820c77a418de0ccb5ddc62bf929 Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:37:50 -0700 Subject: [PATCH] feat: add capability to skip AI review --- .github/workflows/claude-code-review.yml | 6 ++++++ .github/workflows/review.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 9443d25..8a27bdd 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -2,6 +2,11 @@ name: Claude Code Review on: workflow_call: + inputs: + skip_label: + type: string + description: "If this label is set on the PR, the review will be skipped" + default: "skip-claude-review" secrets: GCP_WORKLOAD_IDENTITY_PROVIDER: required: true @@ -18,6 +23,7 @@ on: jobs: claude-review: + if: ${{ !contains(github.event.pull_request.labels.*.name, inputs.skip_label) }} runs-on: ubuntu-latest timeout-minutes: 15 # adds cost protection permissions: diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 9031688..8550c77 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -2,7 +2,7 @@ name: Code Review on: pull_request: - types: [opened, synchronize] + types: [opened, synchronize, labeled, unlabeled] pull_request_target: types: [opened, synchronize]