Update project help text; fix unlink usage
This commit is contained in:
parent
33c30d5bd1
commit
515bb96b2f
2 changed files with 4 additions and 5 deletions
|
|
@ -32,10 +32,9 @@ func NewCmdProject(f *cmdutil.Factory) *cobra.Command {
|
|||
Long: heredoc.Docf(`
|
||||
Work with GitHub Projects.
|
||||
|
||||
Note that the token you are using must have 'project' scope,
|
||||
which is not set by default. You can verify your token scope
|
||||
by running 'gh auth status' and add the project scope by
|
||||
running %[1]sgh auth refresh -s project%[1]s.
|
||||
The minimum required scope for the token is: %[1]sproject%[1]s.
|
||||
You can verify your token scope by running %[1]sgh auth status%[1]s and
|
||||
add the %[1]sproject%[1]s scope by running %[1]sgh auth refresh -s project%[1]s.
|
||||
`, "`"),
|
||||
Example: heredoc.Doc(`
|
||||
$ gh project create --owner monalisa --title "Roadmap"
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ func NewCmdUnlink(f *cmdutil.Factory, runF func(config unlinkConfig) error) *cob
|
|||
opts := unlinkOpts{}
|
||||
linkCmd := &cobra.Command{
|
||||
Short: "Unlink a project from a repository or a team",
|
||||
Use: "unlink [<number>] [flag]",
|
||||
Use: "unlink [<number>]",
|
||||
Example: heredoc.Doc(`
|
||||
# Unlink monalisa's project 1 from her repository "my_repo"
|
||||
$ gh project unlink 1 --owner monalisa --repo my_repo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue