mirror_worker: implement the add-entries submission API #625
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bonk | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| pull_request_review: | |
| types: [submitted] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ 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, '@ask-bonk')) && !contains(github.event.comment.body, '/bigbonk') | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| permissions: | |
| id-token: write | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - run: rustup update stable && rustup default stable | |
| - name: Run Bonk | |
| uses: ask-bonk/ask-bonk/github@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 so Bonk doesn't stall on prompts. | |
| # cf-aig-skip-cache bypasses the AI Gateway response cache: without | |
| # it, re-running `/bonk review` on the same PR returns the first | |
| # run's cached completion, so reviews go stale after a force-push. | |
| # OpenCode forwards provider.<id>.options.headers on every request. | |
| OPENCODE_CONFIG_CONTENT: '{"permission":"allow","provider":{"cloudflare-ai-gateway":{"options":{"headers":{"cf-aig-skip-cache":"true"}}}}}' | |
| with: | |
| # Default tier: fast Workers AI model, no BYOK key required. Use | |
| # /bigbonk (bigbonk.yml) for a deeper Claude review. | |
| model: "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6" | |
| opencode_version: "1.17.7" | |
| mentions: "/bonk,@ask-bonk" | |
| permissions: CODEOWNERS |