Skip to content

Commit 87afd63

Browse files
authored
feat: add capability to skip AI review (#98)
1 parent 43ae3c4 commit 87afd63

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/claude-code-review.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Claude Code Review
22

33
on:
44
workflow_call:
5+
inputs:
6+
skip_label:
7+
type: string
8+
description: "If this label is set on the PR, the review will be skipped"
9+
default: "skip-claude-review"
510
secrets:
611
GCP_WORKLOAD_IDENTITY_PROVIDER:
712
required: true
@@ -18,6 +23,7 @@ on:
1823

1924
jobs:
2025
claude-review:
26+
if: ${{ !contains(github.event.pull_request.labels.*.name, inputs.skip_label) }}
2127
runs-on: ubuntu-latest
2228
timeout-minutes: 15 # adds cost protection
2329
permissions:

.github/workflows/review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
5+
types: [opened, synchronize, labeled, unlabeled]
66
pull_request_target:
77
types: [opened, synchronize]
88

0 commit comments

Comments
 (0)