From 48402cf62f0ec1fddc147a6421115d2df6395988 Mon Sep 17 00:00:00 2001 From: Yige Date: Tue, 7 Jul 2026 19:55:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E7=BF=BB=E8=AF=91=E5=9B=9E=E6=8E=A8?= =?UTF-8?q?=20commit=20=E7=A7=BB=E9=99=A4=20[skip=20ci]=20(#41)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #40 实测发现:bot 回推的翻译 commit 带 `[skip ci]`,把新 SHA 上所有 workflow 都压掉了,必需检查(validate/translate/wait-for-copilot-review)永远不报告,PR 反而无法合并。 - 防循环不依赖 `[skip ci]`——translate job 的 bot actor 判断已经保证(bot 触发时 job skipped,而 skipped 满足必需检查) - validate / copilot 本来就应该在翻译产物上重跑 - 已加注释防止回归 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5 --- .github/workflows/i18n-translate.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/i18n-translate.yml b/.github/workflows/i18n-translate.yml index 3f52b57..3faed1b 100644 --- a/.github/workflows/i18n-translate.yml +++ b/.github/workflows/i18n-translate.yml @@ -269,7 +269,10 @@ jobs: git config user.name "desirecore-bot" git config user.email "bot@desirecore.net" git add -A - git commit -m "chore(i18n): auto-translate skills [skip ci]" \ + # No [skip ci] on purpose: required checks (validate/translate) must + # re-run and report on the translated commit, or the PR becomes + # unmergeable. Loop prevention is the job-level bot-actor guard. + git commit -m "chore(i18n): auto-translate skills" \ -m "Generated by scripts/i18n/translate.py via i18n-translate workflow." \ -m "Backend: ${TRANSLATE_BACKEND} Model: ${TRANSLATE_MODEL}" if ! git push prhead HEAD:"refs/heads/${HEAD_REF}"; then @@ -283,7 +286,7 @@ jobs: git config user.name "desirecore-bot" git config user.email "bot@desirecore.net" git add -A - git commit -m "chore(i18n): auto-translate skills [skip ci]" \ + git commit -m "chore(i18n): auto-translate skills" \ -m "Generated by scripts/i18n/translate.py via i18n-translate workflow." \ -m "Backend: ${TRANSLATE_BACKEND:-github} Model: ${TRANSLATE_MODEL:-openai/gpt-5-mini}" git push