Skip to content

Commit

Permalink
feat(pr): make draft pull request numbers gray
Browse files Browse the repository at this point in the history
  • Loading branch information
benelan committed Nov 3, 2024
1 parent 7914755 commit 63da381
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ $global_binds
pr_cmd() {
# GO TEMPLATE {{{2
pr_template='\
--json "number,title,state,headRefName,milestone,updatedAt,labels,additions,deletions,changedFiles" \
--json "number,title,state,headRefName,milestone,updatedAt,labels,additions,deletions,changedFiles,isDraft" \
--template '\''
{{- $headerColor := "blue+b" -}}
{{- tablerow
Expand All @@ -298,7 +298,9 @@ pr_cmd() {
{{- end -}}
{{- $stateColor := "green" -}}
{{- if eq .state "CLOSED" -}}
{{- if eq .isDraft true -}}
{{- $stateColor = "white+dh" -}}
{{- else if eq .state "CLOSED" -}}
{{- $stateColor = "red" -}}
{{- else if eq .state "MERGED" -}}
{{- $stateColor = "magenta" -}}
Expand Down

0 comments on commit 63da381

Please sign in to comment.