diff --git a/command/issue.go b/command/issue.go index 4a5c98635..3b7b9e9c9 100644 --- a/command/issue.go +++ b/command/issue.go @@ -61,16 +61,13 @@ var issueCreateCmd = &cobra.Command{ Use: "create", Short: "Create a new issue", RunE: issueCreate, - Long: `Create a new issue in a repository - -Examples: - $ gh issue create - $ gh issue create -t "Issue With Title And Body" -b "This is the issue body" - $ gh issue create -t OpenAWebBrowserToCreateThisIssue --web - $ gh issue create -t IssueWithLabels -b IssueBody -l label1,label2 - $ gh issue create -t IssueWithAssignees -b IssueBody -a user1Login,user2Login - $ gh issue create -t IssueWithProjects -b IssueBody -p cli/1,cli/2 - $ gh issue create -t IssueWithMilestone -b IssueBody -m someMilestone + Example: `$ gh issue create +$ gh issue create -t "Issue With Title And Body" -b "This is the issue body" +$ gh issue create -t OpenAWebBrowserToCreateThisIssue --web +$ gh issue create -t IssueWithLabels -b IssueBody -l label1,label2 +$ gh issue create -t IssueWithAssignees -b IssueBody -a user1Login,user2Login +$ gh issue create -t IssueWithProjects -b IssueBody -p cli/1,cli/2 +$ gh issue create -t IssueWithMilestone -b IssueBody -m someMilestone `, } var issueListCmd = &cobra.Command{ diff --git a/command/pr_create.go b/command/pr_create.go index ee6d2a20e..e0fc3ca4e 100644 --- a/command/pr_create.go +++ b/command/pr_create.go @@ -409,20 +409,17 @@ var prCreateCmd = &cobra.Command{ Use: "create", Short: "Create a pull request", RunE: prCreate, - Long: `Create a pull request in a repository - -Examples: - $ gh pr create - $ gh pr create --fill - $ gh pr create -t "PR With Title And Body" -b "This is the pull request body" - $ gh pr create -t OpenAWebBrowserToCreateThisPR --web - $ gh pr create -t DraftPR --draft - $ gh pr create -t PRWithBaseBranch -b PRBody -B branchName - $ gh pr create -t PRWithReviewers -b PRBody -r user1Login,user2Login - $ gh pr create -t PRWithLabels -b PRBody -l label1,label2 - $ gh pr create -t PRWithProjects -b PRBody -p cli/1,cli/2 - $ gh pr create -t PRWithAssignees -b PRBody -a user1Login,user2Login - $ gh pr create -t PRWithMilestone -b PRBody -m someMilestone + Example: `$ gh pr create +$ gh pr create --fill +$ gh pr create -t "PR With Title And Body" -b "This is the pull request body" +$ gh pr create -t OpenAWebBrowserToCreateThisPR --web +$ gh pr create -t DraftPR --draft +$ gh pr create -t PRWithBaseBranch -b PRBody -B branchName +$ gh pr create -t PRWithReviewers -b PRBody -r user1Login,user2Login +$ gh pr create -t PRWithLabels -b PRBody -l label1,label2 +$ gh pr create -t PRWithProjects -b PRBody -p cli/1,cli/2 +$ gh pr create -t PRWithAssignees -b PRBody -a user1Login,user2Login +$ gh pr create -t PRWithMilestone -b PRBody -m someMilestone `, }