我正在使用github 的集線器從命令列創建拉取請求。我什至使用命令列將拉取請求分配給用戶。但是,我不明白如何將已通過命令列創建的拉取請求重新分配給其他用戶。
我用來創建拉取請求的命令是:
hub pull-request -b <org_name>:main -h <branch_name> -m "title of pull request" --assign <user_name>
如果我使用相同的命令分配不同的用戶,那么它會回傳一個錯誤,指出拉取請求已經存在。那么關于如何做到這一點的任何想法?
uj5u.com熱心網友回復:
您可以使用gh pr edit來自 github cli 的:
C:\Users\jesse>gh pr edit
--tile, --body, --reviewer, --assignee, --label, --project, or --milestone required when not running interactively
Usage: gh pr edit [<number> | <url> | <branch>] [flags]
Flags:
--add-assignee login Add assigned users by their login. Use "@me" to assign yourself.
--add-label name Add labels by name
--add-project name Add the pull request to projects by name
--add-reviewer login Add reviewers by their login.
-B, --base branch Change the base branch for this pull request
-b, --body string Set the new body.
-F, --body-file file Read body text from file (use "-" to read from standard input)
-m, --milestone name Edit the milestone the pull request belongs to by name
--remove-assignee login Remove assigned users by their login. Use "@me" to unassign yourself.
--remove-label name Remove labels by name
--remove-project name Remove the pull request from projects by name
--remove-reviewer login Remove reviewers by their login.
-t, --title string Set the new title.
就像是:
gh pr edit --add-assignee jessehouwing --remove-assignee otherguy
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/362269.html
標籤:github github-cli 中心
下一篇:如何在mac上安裝Vue?
