Skip to content

Commit f70accd

Browse files
committed
pr status prints PR number in yellow
This matches `pr list`
1 parent e1f52fe commit f70accd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

command/pr.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ func prView(cmd *cobra.Command, args []string) error {
248248

249249
func printPrs(prs ...api.PullRequest) {
250250
for _, pr := range prs {
251-
fmt.Printf(" #%d %s %s", pr.Number, truncate(50, pr.Title), utils.Cyan("["+pr.HeadRefName+"]"))
251+
prNumber := fmt.Sprintf("#%d", pr.Number)
252+
fmt.Printf(" %s %s %s", utils.Yellow(prNumber), truncate(50, pr.Title), utils.Cyan("["+pr.HeadRefName+"]"))
252253

253254
checks := pr.ChecksStatus()
254255
reviews := pr.ReviewStatus()

0 commit comments

Comments
 (0)