File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
src/main/java/io/pakland/mdas/githubstats
infrastructure/github/model Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,20 @@ public class CommitAggregation implements CSVExportable {
1313 public static CommitAggregation aggregate (List <Commit > commits ) {
1414 CommitAggregation commitAggregation = new CommitAggregation ();
1515 commitAggregation .numCommits = (int ) commits .stream ().distinct ().count ();
16- commitAggregation .linesAdded = commits .stream ().mapToInt (Commit ::getAdditions ).sum ();
17- commitAggregation .linesRemoved = commits .stream ().mapToInt (Commit ::getDeletions ).sum ();
1816 return commitAggregation ;
1917 }
2018
2119 public int getNumCommits () {
2220 return numCommits ;
2321 }
2422
25- public int getLinesAdded () { return linesAdded ; }
23+ public int getLinesAdded () {
24+ return linesAdded ;
25+ }
2626
27- public int getLinesRemoved () { return linesRemoved ; }
27+ public int getLinesRemoved () {
28+ return linesRemoved ;
29+ }
2830
2931 @ Override
3032 public String toCSV () {
Original file line number Diff line number Diff line change 33import io .pakland .mdas .githubstats .domain .enums .PullRequestState ;
44import java .time .Instant ;
55import java .util .*;
6- import java .util .stream .Collectors ;
76import lombok .*;
87
98@ Data
Original file line number Diff line number Diff line change 99import lombok .Data ;
1010import lombok .NoArgsConstructor ;
1111
12+ import java .util .Map ;
13+
1214@ Data
1315@ NoArgsConstructor
1416@ AllArgsConstructor
You can’t perform that action at this time.
0 commit comments