Skip to content

Commit

Permalink
💅 tweak issue/pr create examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jun 16, 2020
1 parent 84f3d46 commit 3fea249
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions command/issue.go
Expand Up @@ -61,13 +61,13 @@ var issueCreateCmd = &cobra.Command{
Use: "create",
Short: "Create a new issue",
RunE: issueCreate,
Example: `
Example: heredoc.Doc(`
$ gh issue create --title "I found a bug" --body "Nothing works"
$ gh issue create --label label1,label2
$ gh issue create --label label1 --label label2
$ gh issue create --assignee user1Login,user2Login
$ gh issue create --project "Our Awesome Project"
`,
$ gh issue create --label "bug,help wanted"
$ gh issue create --label bug --label "help wanted"
$ gh issue create --assignee monalisa,hubot
$ gh issue create --project "Roadmap"
`),
}
var issueListCmd = &cobra.Command{
Use: "list",
Expand Down
15 changes: 8 additions & 7 deletions command/pr_create.go
Expand Up @@ -7,6 +7,7 @@ import (
"strings"
"time"

"github.com/MakeNowJust/heredoc"
"github.com/cli/cli/api"
"github.com/cli/cli/context"
"github.com/cli/cli/git"
Expand Down Expand Up @@ -409,14 +410,14 @@ var prCreateCmd = &cobra.Command{
Use: "create",
Short: "Create a pull request",
RunE: prCreate,
Example: `
Example: heredoc.Doc(`
$ gh pr create --title "The bug is fixed" --body "Everything works again"
$ gh pr create --label label1,label2
$ gh pr create --label label1 --label label2
$ gh pr create --reviewer user1Login,user2Login
$ gh pr create --project "Our Awesome Project"
$ gh pr create --assignee user1Login,user2Login
`,
$ gh issue create --label "bug,help wanted"
$ gh issue create --label bug --label "help wanted"
$ gh pr create --reviewer monalisa,hubot
$ gh pr create --project "Roadmap"
$ gh pr create --base develop
`),
}

func init() {
Expand Down

0 comments on commit 3fea249

Please sign in to comment.