• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / GitProjectHealth / 13562032915

27 Feb 2025 08:29AM UTC coverage: 63.625% (+0.9%) from 62.725%
13562032915

Pull #136

github

web-flow
Merge 38d64247b into 29b562512
Pull Request #136: WIP Closed merge request duration project metric

5500 of 6814 new or added lines in 79 files covered. (80.72%)

10383 of 16319 relevant lines covered (63.63%)

0.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

82.61
/src/GitLabHealth-Model-Analysis/ContributedProjectMetric.class.st
1
Class {
2
        #name : #ContributedProjectMetric,
3
        #superclass : #UserCommitsMetric,
4
        #category : #'GitLabHealth-Model-Analysis'
5
}
6

7
{ #category : #calculating }
8
ContributedProjectMetric >> calculate [
1✔
9

1✔
10
        | groupedByDate dateOver projects |
1✔
11
        userCommits ifNil: [ self load ].
1✔
12
        groupedByDate := self setupGroupedDate.
1✔
13

1✔
14
        userCommits do: [ :userCommit |
1✔
15
                dateOver := self transformDate: userCommit committed_date to: over.
1✔
16

1✔
17
                groupedByDate
1✔
18
                        at: dateOver printString
1✔
19
                        ifPresent: [ :value | value add: userCommit repository project ] ].
1✔
20

1✔
21
        groupedByDate := groupedByDate collect: [ :group |
1✔
22
                                 projects := Set newFrom: group.
1✔
23
                                 projects size ].
1✔
24

1✔
25
        ^ groupedByDate average asFloat
1✔
26
]
1✔
27

28
{ #category : #accessing }
NEW
29
ContributedProjectMetric >> description [
×
NEW
30

×
NEW
31
        ^ 'number of project with min 1 commit of user'
×
NEW
32
]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc