@@ -214,7 +214,7 @@ func prList(cmd *cobra.Command, args []string) error {
214214 if table .IsTTY () {
215215 prNum = "#" + prNum
216216 }
217- table .AddField (prNum , nil , colorFuncForState (pr . State ))
217+ table .AddField (prNum , nil , colorFuncForPR (pr ))
218218 table .AddField (replaceExcessiveWhitespace (pr .Title ), nil , nil )
219219 table .AddField (pr .HeadLabel (), nil , utils .Cyan )
220220 table .EndRow ()
@@ -227,6 +227,14 @@ func prList(cmd *cobra.Command, args []string) error {
227227 return nil
228228}
229229
230+ func colorFuncForPR (pr api.PullRequest ) func (string ) string {
231+ if pr .State == "OPEN" && pr .IsDraft {
232+ return utils .Gray
233+ } else {
234+ return colorFuncForState (pr .State )
235+ }
236+ }
237+
230238func colorFuncForState (state string ) func (string ) string {
231239 switch state {
232240 case "OPEN" :
@@ -385,7 +393,13 @@ func prSelectorForCurrentBranch(ctx context.Context) (prNumber int, prHeadRef st
385393func printPrs (w io.Writer , totalCount int , prs ... api.PullRequest ) {
386394 for _ , pr := range prs {
387395 prNumber := fmt .Sprintf ("#%d" , pr .Number )
388- fmt .Fprintf (w , " %s %s %s" , utils .Green (prNumber ), text .Truncate (50 , replaceExcessiveWhitespace (pr .Title )), utils .Cyan ("[" + pr .HeadLabel ()+ "]" ))
396+
397+ prNumberColorFunc := utils .Green
398+ if pr .IsDraft {
399+ prNumberColorFunc = utils .Gray
400+ }
401+
402+ fmt .Fprintf (w , " %s %s %s" , prNumberColorFunc (prNumber ), text .Truncate (50 , replaceExcessiveWhitespace (pr .Title )), utils .Cyan ("[" + pr .HeadLabel ()+ "]" ))
389403
390404 checks := pr .ChecksStatus ()
391405 reviews := pr .ReviewStatus ()
0 commit comments