fix: admin/owner 也默认走 Fork,除非用户明确要求

This commit is contained in:
wbtiger 2026-04-18 17:07:48 +08:00
parent abcab5a516
commit b0e9fa99e3
2 changed files with 4 additions and 3 deletions

View File

@ -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. 创建分支

View File

@ -243,7 +243,8 @@ gitlink-cli pr +create --owner TargetOrg --repo target-repo \
### 例外
- 自己拥有的仓库可以直接推分支提 PR不需要 Fork 自己的仓库)
- 用户明确要求「直接 push」或「不用 Fork」时可以直接推分支提 PR
- 除此之外,即使是仓库 admin/owner 也应走 Fork 流程
## ⛔ 工具使用边界