diff --git a/.github/workflows/bonk.yml b/.github/workflows/bonk.yml new file mode 100644 index 0000000..b8728f6 --- /dev/null +++ b/.github/workflows/bonk.yml @@ -0,0 +1,43 @@ +name: Bonk +permissions: + id-token: write + contents: write + issues: write + pull-requests: write + +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')) + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + id-token: write + contents: write + issues: write + pull-requests: write + steps: + - uses: actions/checkout@v6 + with: + submodules: "recursive" + - 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 }} + with: + model: "cloudflare-ai-gateway/anthropic/claude-opus-4-6" + mentions: "/bonk,@ask-bonk" + permissions: write