Skip to content

Bump alibaba/open-code-review from 1.8.1 to 1.9.3 #11

Bump alibaba/open-code-review from 1.8.1 to 1.9.3

Bump alibaba/open-code-review from 1.8.1 to 1.9.3 #11

Workflow file for this run

name: opencode
on:
issue_comment:
types: [created, edited]
pull_request_review_comment:
types: [created, edited]
pull_request:
types: [opened, synchronize, reopened]
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
jobs:
bitbound-bot:
runs-on: ${{ fromJson('["self-hosted","Linux"]') }}
if: |
(github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') && (
contains(github.event.comment.body, '/bb') ||
contains(github.event.comment.body, '/bbb')
)
timeout-minutes: 30
concurrency:
group: bitbound-bot-${{ github.event_name }}-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 1
persist-credentials: false
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.BBB_CLIENT_ID }}
private-key: ${{ secrets.BBB_PRIVATE_KEY }}
- uses: anomalyco/opencode/github@latest
timeout-minutes: 30
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
with:
model: ${{vars.BBB_MODEL}}
use_github_token: true
mentions: "/bbb,/bb"
code-review:
if: github.event_name == 'pull_request'
runs-on: ${{ fromJson('["self-hosted","Linux"]') }}
concurrency:
group: code-review-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
timeout-minutes: 30
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.BBB_CLIENT_ID }}
private-key: ${{ secrets.BBB_PRIVATE_KEY }}
- name: Run OpenCodeReview
uses: alibaba/open-code-review@be5e79c1a70a7e04bede846bae42cc7cda96b90d
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with:
llm_url: ${{ vars.OCR_LLM_URL }}
llm_auth_token: "no-token-needed"
llm_model: ${{ vars.OCR_LLM_MODEL }}
llm_use_anthropic: false
github_token: ${{ steps.app-token.outputs.token }}