Skip to content

Commit 26cf524

Browse files
committed
dev-inf: Enable AI review for all PRs except backports
Changed the workflow trigger condition from opt-in (O-AI-Review label) to opt-out, with automatic exclusions for: - Backport PRs (detected by checking if base ref starts with 'release-') - PRs with O-No-AI-Review label (manual opt-out) This enables broader AI review coverage while avoiding redundant reviews of backported changes and respecting explicit opt-outs. The base ref check avoids a race condition where Blathers adds the backport label after the PR is opened. Release note: none Epic: None
1 parent 7bc8809 commit 26cf524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-analyzer-threestage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
claude-code-pr-review:
99
runs-on: ubuntu-latest
10-
if: contains(github.event.pull_request.labels.*.name, 'O-AI-Review')
10+
if: "!startsWith(github.base_ref, 'release-') && !contains(github.event.pull_request.labels.*.name, 'O-No-AI-Review')"
1111
permissions:
1212
contents: read
1313
pull-requests: write

0 commit comments

Comments
 (0)