From 2aad9a00d4583ffb0c40f93eb2548096ed8cc57c Mon Sep 17 00:00:00 2001 From: wbtiger <28288271@qq.com> Date: Sat, 18 Apr 2026 17:07:32 +0800 Subject: [PATCH] fix: require Fork even for admin/owner, unless user explicitly says otherwise --- skills/gitlink-pr/SKILL.md | 4 ++-- skills/gitlink-shared/SKILL.md | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/skills/gitlink-pr/SKILL.md b/skills/gitlink-pr/SKILL.md index 25b1138..ff3e34b 100644 --- a/skills/gitlink-pr/SKILL.md +++ b/skills/gitlink-pr/SKILL.md @@ -77,9 +77,9 @@ gitlink-cli pr +create --owner TargetOrg --repo target-repo \ --title "fix: my change" ``` -> ⛔ **禁止直接往他人的主仓库推分支再提 PR,即使有写权限也不行。** +> ⛔ **禁止直接往主仓库推分支再提 PR,即使有 admin 权限也不行。除非用户明确要求「直接 push」。** -### 在自己仓库提 PR(可直接推分支) +### 在自己仓库直接提 PR(仅限用户明确要求时) ```bash # 1. 创建分支 diff --git a/skills/gitlink-shared/SKILL.md b/skills/gitlink-shared/SKILL.md index ebea574..39f012d 100644 --- a/skills/gitlink-shared/SKILL.md +++ b/skills/gitlink-shared/SKILL.md @@ -243,7 +243,8 @@ gitlink-cli pr +create --owner TargetOrg --repo target-repo \ ### 例外 -- 自己拥有的仓库可以直接推分支提 PR(不需要 Fork 自己的仓库) +- 用户明确要求「直接 push」或「不用 Fork」时,可以直接推分支提 PR +- 除此之外,即使是仓库 admin/owner 也应走 Fork 流程 ## ⛔ 工具使用边界