Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ai-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
jobs:
ai-review:
uses: Kong/volcano-actions/.github/workflows/ai-review.yml@main
with:
hand_off: true
permissions:
actions: write
contents: read
Expand All @@ -18,3 +20,15 @@
secrets:
anthropic_api_key: ${{ secrets.ANTHROPIC_CI_API_KEY }}
codex_access_token: ${{ secrets.CODEX_CI_ACCESS_TOKEN }}
# Moves a PR back to draft after three failing AI review rounds in a row.
# GitHub converts a PR to draft only for a token with contents: write, so
# only this job gets one; it never checks out the PR. See
# Kong/volcano-actions README.md.
hand-off:
needs: ai-review
if: ${{ !cancelled() && needs.ai-review.outputs.hand-off == 'true' }}
uses: Kong/volcano-actions/.github/workflows/ai-review-hand-off.yml@main
permissions:
contents: write
pull-requests: write
statuses: read
Loading