Skip to content

Commit a3aea11

Browse files
author
Dan Hughes
committed
Include URL and number in non-TTY output
1 parent 727b726 commit a3aea11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cmd/pr/view/view.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
4848
4949
Without an argument, the pull request that belongs to the current branch
5050
is displayed.
51-
51+
5252
With '--web', open the pull request in a web browser instead.
5353
`),
5454
Args: cobra.MaximumNArgs(1),
@@ -114,6 +114,8 @@ func printRawPrPreview(out io.Writer, pr *api.PullRequest) error {
114114
fmt.Fprintf(out, "reviewers:\t%s\n", reviewers)
115115
fmt.Fprintf(out, "projects:\t%s\n", projects)
116116
fmt.Fprintf(out, "milestone:\t%s\n", pr.Milestone.Title)
117+
fmt.Fprintf(out, "number:\t%d\n", pr.Number)
118+
fmt.Fprintf(out, "url:\t%s\n", pr.URL)
117119

118120
fmt.Fprintln(out, "--")
119121
fmt.Fprintln(out, pr.Body)

0 commit comments

Comments
 (0)