Skip to content

feat: prefer native cf preview builds #2885

feat: prefer native cf preview builds

feat: prefer native cf preview builds #2885

Workflow file for this run

name: Bonk
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]
concurrency:
# intentionally hardcoded so that all Bonk workflows coexist peacefully
group: bonk-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
cancel-in-progress: false
jobs:
bonk:
if: github.event.sender.type != 'Bot' && contains(github.event.comment.body, '/bonk') && !contains(github.event.comment.body, '/bigbonk')
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
id-token: write
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: "package.json"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Lil Bonk
uses: ask-bonk/ask-bonk/github@5d4fe8f4a557afb1b73ec8c0ffcf60359a28865f # main
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_AI_GATEWAY_ACCOUNT_ID }}
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CF_AI_GATEWAY_NAME }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_AI_GATEWAY_TOKEN }}
# Auto-approve tool calls in CI only, so Bonk doesn't get stuck on
# approval prompts. The model itself is registered in ./opencode.jsonc.
OPENCODE_CONFIG_CONTENT: '{"permission":"allow"}'
with:
oidc_base_url: https://ask-bonk.cloudflare-exponent.workers.dev/auth
model: "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6"
agent: kumo
mentions: "/bonk"
opencode_version: "1.17.7"
permissions: write