mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 14:16:21 +00:00
fix(ci): simplify AI review workflow by disabling progress tracking (#323)
fix(ci): simplify AI review workflow by disabling progress tracking
This commit is contained in:
@@ -21,12 +21,10 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
# Concurrency strategy:
|
# Simple concurrency: one review per PR at a time
|
||||||
# - For issue_comment: include comment author to isolate bot progress comments from human /review requests
|
# With track_progress disabled, no bot comments are posted during review
|
||||||
# - For other events: use event_name + PR number
|
|
||||||
# This prevents bot progress comments from cancelling active reviews
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ai-review-${{ github.event_name }}-${{ github.event.comment.user.login || 'system' }}-${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number }}
|
group: ai-review-${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -41,16 +39,14 @@ jobs:
|
|||||||
|
|
||||||
# Conditions:
|
# Conditions:
|
||||||
# - PR event: only on opened (not synchronize to avoid cancel-on-push)
|
# - PR event: only on opened (not synchronize to avoid cancel-on-push)
|
||||||
# - Comment event: only if it's a PR, contains /review, NOT from a bot, and NOT from our review bot
|
# - Comment event: only if it's a PR, contains /review, and NOT from a bot
|
||||||
# The explicit bot name check prevents self-triggering from progress comments
|
|
||||||
if: >
|
if: >
|
||||||
github.event_name == 'pull_request_target' ||
|
github.event_name == 'pull_request_target' ||
|
||||||
github.event_name == 'workflow_dispatch' ||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
(github.event_name == 'issue_comment' &&
|
(github.event_name == 'issue_comment' &&
|
||||||
github.event.issue.pull_request &&
|
github.event.issue.pull_request &&
|
||||||
contains(github.event.comment.body, '/review') &&
|
contains(github.event.comment.body, '/review') &&
|
||||||
github.event.comment.user.type != 'Bot' &&
|
github.event.comment.user.type != 'Bot')
|
||||||
github.event.comment.user.login != 'ccs-agy-reviewer[bot]')
|
|
||||||
|
|
||||||
# CLIProxy environment for model routing
|
# CLIProxy environment for model routing
|
||||||
env:
|
env:
|
||||||
@@ -97,7 +93,7 @@ jobs:
|
|||||||
anthropic_api_key: ${{ secrets.CLIPROXY_API_KEY }}
|
anthropic_api_key: ${{ secrets.CLIPROXY_API_KEY }}
|
||||||
github_token: ${{ steps.app-token.outputs.token }}
|
github_token: ${{ steps.app-token.outputs.token }}
|
||||||
path_to_claude_code_executable: /home/github-runner/.local/bin/claude
|
path_to_claude_code_executable: /home/github-runner/.local/bin/claude
|
||||||
track_progress: ${{ github.event_name != 'workflow_dispatch' }}
|
track_progress: false # Disabled - no progress comments, just final review
|
||||||
prompt: |
|
prompt: |
|
||||||
ultrathink
|
ultrathink
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user