From 3e0acdae573345cfadb46901899ed0068a323b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=93=E8=89=AF?= <1204183885@qq.com> Date: Wed, 22 Jul 2026 03:16:04 +0000 Subject: [PATCH] fix(ci): inject actual model name into triage signature The triage skill template hardcodes 'qwen3.7-max' in the comment signature line. When QWEN_TRIAGE_MODEL is changed to a different model, the signature still shows the old name. Add a prepare step that replaces the hardcoded model name in pr-workflow.md with the actual OPENAI_MODEL value before triage runs. --- .github/workflows/qwen-triage.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/qwen-triage.yml b/.github/workflows/qwen-triage.yml index 89088ddcc8b..1917b99a2b6 100644 --- a/.github/workflows/qwen-triage.yml +++ b/.github/workflows/qwen-triage.yml @@ -259,6 +259,16 @@ jobs: echo "number=${{ github.event.issue.number }}" >> "$GITHUB_OUTPUT" fi + - name: 'Inject model name into triage signature' + shell: 'bash' + env: + OPENAI_MODEL: '${{ vars.QWEN_TRIAGE_MODEL || vars.QWEN_PR_REVIEW_MODEL }}' + run: |- + set -euo pipefail + if [ -n "${OPENAI_MODEL:-}" ]; then + sed -i "s/qwen3\.7-max/${OPENAI_MODEL}/g" .qwen/skills/triage/references/pr-workflow.md + fi + - name: 'Run Qwen Triage' id: 'triage' uses: 'QwenLM/qwen-code-action@6d08e91aa807257b9c8af60edb5bb6bb2d7d951f'