cloudflare/kumo

Public

mirrored fromhttps://github.com/cloudflare/kumoAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
815628fe0b8553d34283f984a0afb85378c27f03

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/bonk.yml

56lines · modecode

1name: Bonk
2
3on:
4 issue_comment:
5 types: [created]
6 pull_request_review_comment:
7 types: [created]
8 pull_request_review:
9 types: [submitted]
10
11concurrency:
12 # intentionally hardcoded so that all Bonk workflows coexist peacefully
13 group: bonk-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
14 cancel-in-progress: false
15
16jobs:
17 bonk:
18 if: github.event.sender.type != 'Bot' && contains(github.event.comment.body, '/bonk') && !contains(github.event.comment.body, '/bigbonk')
19 runs-on: ubuntu-latest
20 timeout-minutes: 45
21 permissions:
22 id-token: write
23 contents: write
24 issues: write
25 pull-requests: write
26 steps:
27 - name: Checkout repository
28 uses: actions/checkout@v6
29 with:
30 fetch-depth: 1
31
32 - name: Setup pnpm
33 uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
34
35 - name: Setup Node.js
36 uses: actions/setup-node@v6
37 with:
38 node-version-file: "package.json"
39 cache: "pnpm"
40
41 - name: Install dependencies
42 run: pnpm install --frozen-lockfile
43
44 - name: Run Lil Bonk
45 uses: ask-bonk/ask-bonk/github@8c7a8314f4f4865e2e41e5718dfabc4ab7a2274b # main
46 env:
47 CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_AI_GATEWAY_ACCOUNT_ID }}
48 CLOUDFLARE_GATEWAY_ID: ${{ secrets.CF_AI_GATEWAY_NAME }}
49 CLOUDFLARE_API_TOKEN: ${{ secrets.CF_AI_GATEWAY_TOKEN }}
50 with:
51 model: "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6"
52 agent: kumo
53 mentions: "/bonk"
54 opencode_version: "1.15.11"
55 permissions: write
56
57