Skip to content

Commit 2d817da

Browse files
chore(ai): use stick comment in claude pr reviews
1 parent f075d73 commit 2d817da

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/_claude-code.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
required: false
2727
default: true
2828
type: boolean
29+
use_sticky_comment:
30+
description: 'Use just one comment to deliver PR comments (only applies for pull_request event workflows)'
31+
required: false
32+
default: false
33+
type: boolean
2934
secrets:
3035
ANTHROPIC_API_KEY:
3136
required: true
@@ -92,6 +97,7 @@ jobs:
9297
github_token: ${{ secrets.GITHUB_TOKEN }}
9398
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
9499
track_progress: ${{ inputs.track_progress }}
100+
use_sticky_comment: ${{ inputs.use_sticky_comment }}
95101
additional_permissions: |
96102
actions: read
97103
allowed_bots: "dependabot[bot],renovate[bot]"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "+ Claude Code / Automation / PR Review"
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
5+
types: [opened, reopened, synchronize, ready_for_review, labeled]
66
workflow_dispatch:
77

88
concurrency:
@@ -15,6 +15,7 @@ jobs:
1515
with:
1616
mode: 'automation'
1717
track_progress: ${{ github.event_name != 'workflow_dispatch' && true || false }}
18+
use_sticky_comment: true
1819
allowed_tools: 'mcp__github_inline_comment__create_inline_comment,Read,Write,Edit,MultiEdit,Glob,Grep,LS,WebFetch,WebSearch,Bash(git:*),Bash(bun:*),Bash(npm:*),Bash(npx:*),Bash(gh:*),Bash(uv:*),Bash(make:*)'
1920
prompt: |
2021
# PR REVIEW FOR AIGNOSTICS PYTHON SDK

0 commit comments

Comments
 (0)