X Tutup
Skip to content

Commit 99c17c3

Browse files
authored
Merge pull request cli#227 from github/typoswap
Typo fixes for Issue/PR preview text
2 parents 9e22b9b + d2eb17b commit 99c17c3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

command/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func init() {
3636
issueListCmd.Flags().StringP("state", "s", "", "Filter by state: {open|closed|all}")
3737
issueListCmd.Flags().IntP("limit", "L", 30, "Maximum number of issues to fetch")
3838

39-
issueViewCmd.Flags().BoolP("preview", "p", false, "Preview PR in terminal")
39+
issueViewCmd.Flags().BoolP("preview", "p", false, "Display preview of issue content")
4040
}
4141

4242
var issueCmd = &cobra.Command{

command/pr.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func init() {
3232
prListCmd.Flags().StringSliceP("label", "l", nil, "Filter by label")
3333
prListCmd.Flags().StringP("assignee", "a", "", "Filter by assignee")
3434

35-
prViewCmd.Flags().BoolP("preview", "p", false, "Preview PR in terminal")
35+
prViewCmd.Flags().BoolP("preview", "p", false, "Display preview of pull request content")
3636
}
3737

3838
var prCmd = &cobra.Command{
@@ -318,7 +318,7 @@ func printPrPreview(out io.Writer, pr *api.PullRequest) {
318318
fmt.Fprintln(out)
319319
fmt.Fprintln(out, utils.RenderMarkdown(pr.Body))
320320
fmt.Fprintln(out)
321-
fmt.Fprintf(out, utils.Gray("View this PR on GitHub: %s\n"), pr.URL)
321+
fmt.Fprintf(out, utils.Gray("View this pull request on GitHub: %s\n"), pr.URL)
322322
}
323323

324324
var prURLRE = regexp.MustCompile(`^https://github\.com/([^/]+)/([^/]+)/pull/(\d+)`)

command/pr_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func TestPRView_preview(t *testing.T) {
257257
regexp.MustCompile(`Blueberries are from a fork`),
258258
regexp.MustCompile(`nobody wants to merge 12 commits into master from blueberries`),
259259
regexp.MustCompile(`blueberries taste good`),
260-
regexp.MustCompile(`View this PR on GitHub: https://github.com/OWNER/REPO/pull/12`),
260+
regexp.MustCompile(`View this pull request on GitHub: https://github.com/OWNER/REPO/pull/12`),
261261
}
262262
for _, r := range expectedLines {
263263
if !r.MatchString(output.String()) {
@@ -291,7 +291,7 @@ func TestPRView_previewCurrentBranch(t *testing.T) {
291291
regexp.MustCompile(`Blueberries are a good fruit`),
292292
regexp.MustCompile(`nobody wants to merge 8 commits into master from blueberries`),
293293
regexp.MustCompile(`blueberries taste good`),
294-
regexp.MustCompile(`View this PR on GitHub: https://github.com/OWNER/REPO/pull/10`),
294+
regexp.MustCompile(`View this pull request on GitHub: https://github.com/OWNER/REPO/pull/10`),
295295
}
296296
for _, r := range expectedLines {
297297
if !r.MatchString(output.String()) {

0 commit comments

Comments
 (0)
X Tutup