Skip to content

Commit

Permalink
Merge pull request cli#347 from cli/captialize-status
Browse files Browse the repository at this point in the history
Make approval statuses sentence case
  • Loading branch information
Nate Smith authored Feb 11, 2020
2 parents 1286c09 + 1790d14 commit c23b9d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions command/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ func printPrs(w io.Writer, totalCount int, prs ...api.PullRequest) {
}

if reviews.ChangesRequested {
fmt.Fprintf(w, " - %s", utils.Red("changes requested"))
fmt.Fprintf(w, " - %s", utils.Red("Changes requested"))
} else if reviews.ReviewRequired {
fmt.Fprintf(w, " - %s", utils.Yellow("review required"))
fmt.Fprintf(w, " - %s", utils.Yellow("Review required"))
} else if reviews.Approved {
fmt.Fprintf(w, " - %s", utils.Green("approved"))
fmt.Fprintf(w, " - %s", utils.Green("Approved"))
}

fmt.Fprint(w, "\n")
Expand Down
6 changes: 3 additions & 3 deletions command/pr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ func TestPRStatus_reviewsAndChecks(t *testing.T) {
}

expected := []string{
"- Checks passing - changes requested",
"- Checks pending - approved",
"- 1/3 checks failing - review required",
"- Checks passing - Changes requested",
"- Checks pending - Approved",
"- 1/3 checks failing - Review required",
}

for _, line := range expected {
Expand Down

0 comments on commit c23b9d1

Please sign in to comment.