Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Code Review (OpenCodeReview)
# OCR_LLM_URL, OCR_LLM_AUTH_TOKEN
# Optional:
# OCR_LLM_MODEL (default glm-5.2), OCR_LLM_USE_ANTHROPIC (default true)
# GH_APP_ID + GH_APP_MUNMIU_PRIVATE_KEY -> post comments as munmiu[bot]
# GH_APP_CLIENT_ID (or legacy GH_APP_ID) + GH_APP_MUNMIU_PRIVATE_KEY -> post comments as munmiu[bot]
# (falls back to github-actions[bot] when absent)

on:
Expand All @@ -28,6 +28,8 @@ on:
# github-actions[bot]. If absent/empty, falls back to GITHUB_TOKEN.
GH_APP_ID:
required: false
GH_APP_CLIENT_ID:
required: false
GH_APP_MUNMIU_PRIVATE_KEY:
required: false

Expand Down Expand Up @@ -129,9 +131,9 @@ jobs:
- name: Get munmiu app token
id: app-token
continue-on-error: true # absent app secrets / not installed → fall back to GITHUB_TOKEN
uses: actions/create-github-app-token@v3
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
with:
app-id: ${{ secrets.GH_APP_ID }}
client-id: ${{ secrets.GH_APP_CLIENT_ID || secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_MUNMIU_PRIVATE_KEY }}

- name: Post review comments to PR
Expand Down
Loading