File
Blob: .github/workflows/bigbonk.yml
| 1 | name: Bonk |
| 2 | |
| 3 | on: |
| 4 | issue_comment: |
| 5 | types: [created] |
| 6 | pull_request_review_comment: |
| 7 | types: [created] |
| 8 | pull_request_review: |
| 9 | types: [submitted] |
| 10 | |
| 11 | concurrency: |
| 12 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.ref }} |
| 13 | cancel-in-progress: false |
| 14 | |
| 15 | jobs: |
| 16 | bonk: |
| 17 | if: github.event.sender.type != 'Bot' && contains(github.event.comment.body, '/bigbonk') |
| 18 | runs-on: ubuntu-latest |
| 19 | timeout-minutes: 30 |
| 20 | permissions: |
| 21 | id-token: write |
| 22 | contents: write |
| 23 | issues: write |
| 24 | pull-requests: write |
| 25 | steps: |
| 26 | - name: Checkout repository |
| 27 | uses: actions/checkout@v6 |
| 28 | with: |
| 29 | fetch-depth: 1 |
| 30 | |
| 31 | - name: Run Bonk |
| 32 | uses: ask-bonk/ask-bonk/github@main |
| 33 | env: |
| 34 | CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_AI_GATEWAY_ACCOUNT_ID }} |
| 35 | CLOUDFLARE_GATEWAY_ID: ${{ secrets.CF_AI_GATEWAY_NAME }} |
| 36 | CLOUDFLARE_API_TOKEN: ${{ secrets.CF_AI_GATEWAY_TOKEN }} |
| 37 | with: |
| 38 | model: 'cloudflare-ai-gateway/anthropic/claude-opus-4-6' |
| 39 | mentions: '/bigbonk' |
| 40 | variant: 'max' |
| 41 | permissions: write |
| 42 | opencode_version: "1.14.33" |
| 43 | # token_permissions defaults to WRITE (i.e. Bonk can push commits). |
| 44 | # We intentionally leave it that way here because users may ask Bonk |
| 45 | # to update their PR via /bigbonk. |