Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit e15ae1e

Browse files
committed
All delimiters to numbers in PR status
1 parent 1be27de commit e15ae1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/cc/presenters/github_pull_requests_presenter.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module CC
22
class Service
33
class GitHubPullRequestsPresenter
4+
include ActiveSupport::NumberHelper
5+
46
def initialize(payload)
57
issue_comparison_counts = payload["issue_comparison_counts"]
68

@@ -26,15 +28,15 @@ def both_issue_counts_zero?
2628

2729
def formatted_fixed_issues
2830
if @fixed_count > 0
29-
"#{@fixed_count} fixed #{"issue".pluralize(@fixed_count)}"
31+
"#{number_to_delimited(@fixed_count)} fixed #{"issue".pluralize(@fixed_count)}"
3032
else
3133
nil
3234
end
3335
end
3436

3537
def formatted_new_issues
3638
if @new_count > 0
37-
"#{@new_count} new #{"issue".pluralize(@new_count)}"
39+
"#{number_to_delimited(@new_count)} new #{"issue".pluralize(@new_count)}"
3840
else
3941
nil
4042
end

0 commit comments

Comments
 (0)