diff --git a/pkg/cmd/project/project.go b/pkg/cmd/project/project.go index 6f217d561..cddbad940 100644 --- a/pkg/cmd/project/project.go +++ b/pkg/cmd/project/project.go @@ -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" diff --git a/pkg/cmd/project/unlink/unlink.go b/pkg/cmd/project/unlink/unlink.go index d65327fdf..8cc2c0747 100644 --- a/pkg/cmd/project/unlink/unlink.go +++ b/pkg/cmd/project/unlink/unlink.go @@ -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 [] [flag]", + Use: "unlink []", Example: heredoc.Doc(` # Unlink monalisa's project 1 from her repository "my_repo" $ gh project unlink 1 --owner monalisa --repo my_repo