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@8c7a8314f4f4865e2e41e5718dfabc4ab7a2274b # 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 }} with: model: "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6" agent: kumo mentions: "/bonk" opencode_version: "1.15.11" permissions: write