File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
4242var issueCmd = & cobra.Command {
Original file line number Diff line number Diff 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
3838var 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
324324var prURLRE = regexp .MustCompile (`^https://github\.com/([^/]+)/([^/]+)/pull/(\d+)` )
Original file line number Diff line number Diff 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 ()) {
You can’t perform that action at this time.
0 commit comments