Skip to content

Commit

Permalink
feat: update the PR view diff changes summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanix-Darker authored and dlvhdr committed Aug 12, 2023
1 parent bb6e5fc commit 97b1ec3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/components/pr/pr.go
Expand Up @@ -128,7 +128,11 @@ func (pr *PullRequest) renderLines() string {
}

return pr.getTextStyle().Render(
fmt.Sprintf("%d / -%d", pr.Data.Additions, deletions),
fmt.Sprintf(
"\033[0;32m+%d\033[0m \033[0;31m-%d\033[0m",
pr.Data.Additions,
deletions,
),
)
}

Expand Down

0 comments on commit 97b1ec3

Please sign in to comment.