* ci: retry issue triage when the model is rate limited Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: suggest the upstream tracker only for complete bug reports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: fix the triage comment test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Issue Triage
|
|
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
workflow_dispatch:
|
|
inputs:
|
|
issue_number:
|
|
description: Issue number
|
|
required: true
|
|
type: number
|
|
publish:
|
|
description: Publish the result (otherwise only print it)
|
|
default: false
|
|
type: boolean
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: issue-triage-${{ github.event.issue.number || inputs.issue_number }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
triage:
|
|
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
ref: ${{ github.workflow_sha }}
|
|
persist-credentials: false
|
|
sparse-checkout-cone-mode: false
|
|
sparse-checkout: /.github/scripts/
|
|
- name: Triage issue
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
PR_REVIEW_LLM_KEY: ${{ secrets.PR_REVIEW_LLM_KEY }}
|
|
PR_REVIEW_LLM_BASE_URL: ${{ vars.PR_REVIEW_LLM_BASE_URL || 'https://open.bigmodel.cn/api/anthropic' }}
|
|
PR_REVIEW_LLM_MODEL: ${{ vars.PR_REVIEW_LLM_MODEL || 'glm-5.4' }}
|
|
PR_REVIEW_LLM_PROTOCOL: ${{ vars.PR_REVIEW_LLM_PROTOCOL || 'anthropic' }}
|
|
PR_REVIEW_LLM_EXTRA_BODY: ${{ vars.PR_REVIEW_LLM_EXTRA_BODY }}
|
|
run: node .github/scripts/issue-triage.mjs
|