Skip to content

ci: un-bonk bonk

ci: un-bonk bonk #742

Workflow file for this run

name: New PR Review
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false
permissions:
id-token: write
contents: read
issues: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 30
- name: Load review prompt
id: prompt
run: |
{
echo 'value<<EOF'
echo "You are reviewing PR #${{ github.event.pull_request.number }} on ${{ github.repository }}."
echo ""
cat .github/bonk_reviewer.md
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Run Bonk
uses: ask-bonk/ask-bonk/github@main
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_GATEWAY_BASE_URL: https://gateway.ai.cloudflare.com/v1/${{ vars.CLOUDFLARE_ACCOUNT_ID }}/${{ vars.CLOUDFLARE_GATEWAY_ID }}/compat
# Must stay below the job's timeout-minutes. The harness defaults to 45m, so 25m gives opencode enough time to retry
OPENCODE_TIMEOUT: 25m
OPENCODE_PRINT_LOGS: '1'
OPENCODE_LOG_LEVEL: INFO
with:
model: 'cf-gateway/kimi-k2.7-code'
forks: 'false'
permissions: write
opencode_version: '1.18.13'
# The auto-reviewer must never push to PR branches. NO_PUSH
# enforces that at the token level.
token_permissions: 'NO_PUSH'
prompt: ${{ steps.prompt.outputs.value }}