From bd4877cac21c38cf029e540e62cf5d170d363ecf Mon Sep 17 00:00:00 2001 From: HJJ <1916787042@qq.com> Date: Tue, 16 Apr 2024 10:08:24 +0800 Subject: [PATCH] update readme --- README.md | 14 ++++++++++++-- internal/api/pull_request/pull_request.go | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 403c7c1..0dd9042 100644 --- a/README.md +++ b/README.md @@ -165,10 +165,10 @@ Flags: ![img.png](doc/images/gitee_pr.gif) - 根据 commit 找到对应的被合入至当前分支的 Pull Request `gitee pr list -c ` ```shell - ➜ ~ gitee pr -c "80b4ef95c0d" + ➜ ~ gitee pr list -c "80b4ef95c0d" 请在仓库目录下执行该命令! ➜ ~ cd /home/git/gitee - ➜ gitee (master) ✔ gitee pr -c "80b4ef95c0d" + ➜ gitee (master) ✔ gitee pr list -c "80b4ef95c0d" 该 commit 由 PR: 「修改仓库模糊查询,支持namespace级联查询,修复全英文字符查询时只匹配path问题」 合入,访问地址: https://gitee.com/hightest/settings/pulls19977 ``` - 创建 pull_request @@ -184,6 +184,16 @@ Flags: ➜ gitee (master) ✔ gitee pr note -i 19995 /approve 评论成功! ``` +- 评审通过 Pull Request + ```shell + ➜ gitee (master) ✔ gitee pr review 19995 + 审查通过🏅 + ``` +- 关闭 Pull Request + ```shell + ➜ gitee (master) ✔ gitee pr close 19995 + 关闭 PR 成功🏅 + ``` ### Issue 相关 - 创建 issue diff --git a/internal/api/pull_request/pull_request.go b/internal/api/pull_request/pull_request.go index 34d4907..42e5ebd 100644 --- a/internal/api/pull_request/pull_request.go +++ b/internal/api/pull_request/pull_request.go @@ -328,5 +328,5 @@ func Review(iid string) { color.Red("审查通过失败!") os.Exit(1) } - color.Green("审查通过成功🏅") + color.Green("审查通过🏅") }