From f557d9e7500541d658d2040c9331f8ba776cc43f Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 28 Aug 2026 09:30:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(pr):=20=E7=B5=B1=E4=B8=80=20PR=20=E6=94=B6?= =?UTF-8?q?=E5=B0=BE=E5=9B=9E=E5=A0=B1=E8=88=87=E7=95=99=E8=A8=80=E5=9B=9E?= =?UTF-8?q?=E8=A6=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- README.md | 2 +- plugin.json | 2 +- skills/pr/SKILL.md | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 331448d..33bd5a5 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-git", - "version": "0.0.8", + "version": "0.0.9", "description": "Commit 分組認可與 Push Request 建立", "skills": "./skills", "author": { diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 3b27a61..c5c4b0a 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-git", - "version": "0.0.8", + "version": "0.0.9", "description": "Commit 分組認可與 Push Request 建立", "skills": "./skills" } diff --git a/README.md b/README.md index ed589b4..bbfc8a6 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Marketplace 統一為 `jsc`(https://gitea.jsc.idv.tw/plugins/meta.git),安 ### `pr` -先認可所有變更,再依階梯命名目標分支、push、以範本描述建立 Gitea PR。基底分支由 `base-branch.sh --derive` 從分支名推出上一階;呼叫方傳入的基底與推導結果不同,就當成越級擋下並說明正確階梯,不會悄悄改目標。分支名只允許 ASCII:類型取 commit 優先度最高者,功能與標題先翻譯成英文短語再 slug 化。分支已有開啟中的 PR 時不重開,改成比對標題、描述、前置 PR 依賴三項,只有不一樣的那幾項才送出 API 呼叫。 +先認可所有變更,再依階梯命名目標分支、push、以範本描述建立 Gitea PR。基底分支由 `base-branch.sh --derive` 從分支名推出上一階;呼叫方傳入的基底與推導結果不同,就當成越級擋下並說明正確階梯,不會悄悄改目標。分支名只允許 ASCII:類型取 commit 優先度最高者,功能與標題先翻譯成英文短語再 slug 化。分支已有開啟中的 PR 時不重開,改成比對標題、描述、前置 PR 依賴三項,只有不一樣的那幾項才送出 API 呼叫。收尾回報使用 `jsc-meta/references/pr-report.md` 的 PR 資訊表格。 diff --git a/plugin.json b/plugin.json index a1b553b..b3a1705 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-git", - "version": "0.0.8", + "version": "0.0.9", "description": "Commit 分組認可與 Push Request 建立", "skills": "./skills/" } diff --git a/skills/pr/SKILL.md b/skills/pr/SKILL.md index f64fe9a..3069226 100644 --- a/skills/pr/SKILL.md +++ b/skills/pr/SKILL.md @@ -46,7 +46,8 @@ Every PR targets the next rung up. Skipping a rung is forbidden. - The dependency differs → run `pr-depend` as in step 8. - All three match → change nothing. Every needless edit notifies every reviewer, so silence is the correct outcome here. - Done when each of the three items is reported as either matched or updated, and the number of API calls made equals the number of items that differed. -10. Report the PR URL, the base branch, the target branch, which of the three calibration items were updated, and the feature trunk the script auto-created when step 3 printed that line. Done when the report names all of them. +10. If this run follows PR comment fixes and the caller supplied handled comment ids, reply to each comment now with `jsc-gitea/tools/gitea.sh comment-reply`. Rules: `jsc-meta/references/pr-report.md`. Done when every handled comment has a reply URL, or a reported reply failure reason. +11. Report the PR with the table format in `jsc-meta/references/pr-report.md`, then report the base branch, the target branch, which of the three calibration items were updated, and the feature trunk the script auto-created when step 3 printed that line. Done when the report includes the PR table columns `{owner}/{repo}`, PR number, PR URL and PR summary, and names all branch and calibration details. ## Rules -- 2.53.0