Skip to content

Commit 2d2d7ba

Browse files
committed
Add Bonk AI review GitHub workflows
1 parent 7f70445 commit 2d2d7ba

2 files changed

Lines changed: 79 additions & 0 deletions

File tree

.github/workflows/bonk-pr.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Bonk PR Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
bonk:
9+
if: >-
10+
github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id &&
11+
github.event.sender.type != 'Bot'
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 60
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: false
17+
permissions:
18+
id-token: write
19+
contents: read
20+
issues: write
21+
pull-requests: write
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v7
25+
26+
- name: Run Bonk
27+
uses: ask-bonk/ask-bonk/github@c3f6dd354ca1f14329e8ea298958c000f0bfef3e
28+
env:
29+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_AI_GATEWAY_ACCOUNT_ID }}
30+
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CF_AI_GATEWAY_NAME }}
31+
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_AI_GATEWAY_TOKEN }}
32+
with:
33+
model: "cloudflare-ai-gateway/anthropic/claude-opus-4-8"
34+
variant: "high"
35+
forks: "false"
36+
permissions: write
37+
token_permissions: NO_PUSH
38+
agent: bonk
39+
opencode_version: 1.15.13 # pin to this version as certain ones cause ProviderInitError issues

.github/workflows/bonk.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Bonk
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
9+
jobs:
10+
bonk:
11+
if: github.event.sender.type != 'Bot'
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 60
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
16+
cancel-in-progress: false
17+
permissions:
18+
id-token: write
19+
contents: write
20+
issues: write
21+
pull-requests: write
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v7
25+
26+
- name: Run Bonk
27+
uses: ask-bonk/ask-bonk/github@c3f6dd354ca1f14329e8ea298958c000f0bfef3e
28+
env:
29+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_AI_GATEWAY_ACCOUNT_ID }}
30+
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CF_AI_GATEWAY_NAME }}
31+
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_AI_GATEWAY_TOKEN }}
32+
with:
33+
model: "cloudflare-ai-gateway/anthropic/claude-opus-4-8"
34+
variant: "high"
35+
mentions: "/bonk,@ask-bonk"
36+
forks: "false"
37+
permissions: write
38+
token_permissions: NO_PUSH
39+
agent: bonk
40+
opencode_version: 1.15.13 # pin to this version as certain ones cause ProviderInitError issues

0 commit comments

Comments
 (0)