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

moosetechnology / GitProjectHealth / 18685026484

21 Oct 2025 01:13PM UTC coverage: 77.679% (-0.3%) from 77.946%
18685026484

Pull #237

github

web-flow
Merge 478ef6464 into 9215ab54a
Pull Request #237: feat(GLHModel): add position in GLHNote

59 of 191 new or added lines in 6 files covered. (30.89%)

3 existing lines in 1 file now uncovered.

23122 of 29766 relevant lines covered (77.68%)

0.78 hits per line

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

0.0
/src/GitLabHealth-Model-Generator/GLHMetamodelGenerator.class.st
1
Class {
2
        #name : #GLHMetamodelGenerator,
3
        #superclass : #FamixMetamodelGenerator,
4
        #instVars : [
5
                'project',
6
                'group',
7
                'pipeline',
8
                'user',
9
                'repository',
10
                'branch',
11
                'file',
12
                'fileBlob',
13
                'fileDirectory',
14
                'commit',
15
                'commitStats',
16
                'diff',
17
                'job',
18
                'mergeRequest',
19
                'diffRange',
20
                'change',
21
                'addition',
22
                'deletion',
23
                'lineOfCode',
24
                'note',
25
                'notePosition',
26
                'entity',
27
                'release',
28
                'tag',
29
                'issue',
30
                'milestone',
31
                'tRef'
32
        ],
33
        #category : #'GitLabHealth-Model-Generator'
34
}
35

36
{ #category : #initialization }
37
GLHMetamodelGenerator class >> forceRecreateModel [ 
×
38
        <example>
×
39

×
40
        (UIManager default 
×
41
        alert: 'You are about to execute a "generateWithCleaning" process on our model. 
×
42
        This method will delete and recreate all the model. It will also delete all entities extensions. 
×
43
        Please ensure you have committed our code first so you will be able to reverte the deleted extensios.' title: 'RESET Model'; 
×
44
        confirm: 'Are you REALLY sure you want to reset all model''s relations and extensions ?' )
×
45
         ifTrue: [ 
×
46
                         Smalltalk image garbageCollect.
×
47
                        Smalltalk image garbageCollectMost.
×
48
        Transcript show: 'Block executed for GLHMetamodelGenerator new generateWithCleaning'; cr.
×
49
                        GLHMetamodelGenerator new generateWithCleaning.
×
50
                        "GLHMetamodelGenerator generate"
×
51
    ]
×
52
    ifFalse: [
×
53
        Transcript show: 'Reset operation cancelled'; cr.
×
54
    ].
×
55

×
56

×
57

×
58
]
×
59

60
{ #category : #accessing }
61
GLHMetamodelGenerator class >> packageName [
×
62
        ^ #'GitLabHealth-Model'
×
63
]
×
64

65
{ #category : #accessing }
66
GLHMetamodelGenerator class >> prefix [
×
67
        ^ #GLH
×
68
]
×
69

70
{ #category : #accessing }
71
GLHMetamodelGenerator class >> submetamodels [
×
72

×
73
        ^ { FamixMooseQueryGenerator . FamixGenerator }
×
74
]
×
75

76
{ #category : #branches }
77
GLHMetamodelGenerator >> branchProperties [
×
78

×
79
        
×
80
]
×
81

82
{ #category : #changes }
83
GLHMetamodelGenerator >> changeProperties [
×
84

×
85
        change property: #index type: #Number.
×
86
        change property: #relativeIndex type: #Number.
×
87
        change property: #sourceCode type: #String. 
×
88
        addition property: #delimiter type: #String defaultValue: '#+'.
×
89
        deletion property: #delimiter type: #String defaultValue: '#-'
×
90
]
×
91

92
{ #category : #commits }
93
GLHMetamodelGenerator >> commitProperties [
×
94

×
95
        commit property: #parent_ids type: #Object defaultValue: 'OrderedCollection new'.
×
96

×
97
        commit property: #id type: #String.
×
98
        commit property: #short_id type: #String.
×
99
        commit property: #title type: #String.
×
100
        commit property: #author_name type: #String.
×
101
        commit property: #author_email type: #String.
×
102
        commit property: #authored_date type: #Object.
×
103
        commit property: #committer_name type: #String.
×
104
        commit property: #committer_email type: #String.
×
105
        commit property: #committed_date type: #Object.
×
106
        commit property: #created_at type: #Object.
×
107
        commit property: #message type: #String.
×
108
        commit property: #web_url type: #String.
×
109

×
110

×
111
        (commit property: #additions type: #Number) comment:
×
112
                'The number of line that git consider added'.
×
113
        (commit property: #deletions type: #Number) comment:
×
114
                'The number of line that git consider deleted'
×
115
]
×
116

117
{ #category : #definition }
118
GLHMetamodelGenerator >> defineClasses [
×
119

×
120
        super defineClasses.
×
121
        entity := builder ensureClassNamed: #Entity.
×
122
        group := builder newClassNamed: #Group comment: 'A GitLab Group'.
×
123
        group withGroup.
×
124
        project := builder
×
125
                           newClassNamed: #Project
×
126
                           comment: 'A GitLab Project'.
×
127
        pipeline := builder
×
128
                            newClassNamed: #Pipeline
×
129
                            comment: 'A GitLab Pipeline execution'.
×
130
        user := builder newClassNamed: #User comment: 'A GitLab User'.
×
131
        repository := builder
×
132
                              newClassNamed: #Repository
×
133
                              comment: 'A git repository'.
×
134
        branch := builder newClassNamed: #Branch comment: 'A git branch'.
×
135
        file := builder newClassNamed: #File comment: 'A file'.
×
136
        fileBlob := builder newClassNamed: #FileBlob comment: 'A file blob'.
×
137
        fileDirectory := builder
×
138
                                 newClassNamed: #FileDirectory
×
139
                                 comment: 'A file directory'.
×
140
        commit := builder
×
141
                          newClassNamed: #Commit
×
142
                          comment: 'a commit attached to a repository'.
×
143
        diff := builder newClassNamed: #Diff comment: 'The diff of a commit'.
×
144

×
145
        job := builder newClassNamed: #Job comment: 'A CI Job'.
×
146

×
147
        mergeRequest := builder
×
148
                                newClassNamed: #MergeRequest
×
149
                                comment: 'a gitlab merge request'.
×
150

×
151
        change := builder
×
152
                          newClassNamed: #Change
×
153
                          comment: 'super class for addition and deletion '.
×
154

×
155
        addition := builder
×
156
                            newClassNamed: #Addition
×
157
                            comment:
×
158
                            'a detected addition of a line, seen within a diff '.
×
159
        addition withTesting.
×
160
        deletion := builder
×
161
                            newClassNamed: #Deletion
×
162
                            comment:
×
163
                            'a detected deletion of a line, seen within a diff '.
×
164
        deletion withTesting.
×
165

×
166
        lineOfCode := builder
×
167
                              newClassNamed: #LineOfCode
×
168
                              comment: 'a line of code in a diff comparaison '.
×
169

×
170
        diffRange := builder
×
171
                             newClassNamed: #DiffRange
×
172
                             comment:
×
173
                             'a indicate on which line of code are concerned by a diff (usually declared with @@ oldRange, newRange @@) '.
×
174

×
175
        note := builder
×
176
                        newClassNamed: #Note
×
177
                        comment:
×
178
                        'a note (a diff) proposed in a Merge Request; can be accepted, modified or deleted'.
×
179

×
NEW
180
        notePosition := builder
×
NEW
181
                                newClassNamed: #NotePosition
×
NEW
182
                                comment: 'indicate the position of a note'.
×
183

×
184
        tag := builder
×
185
                       newClassNamed: #Tag
×
186
                       comment:
×
187
                       'a Tag is a reference to a specific point in the repository''s history'.
×
188

×
189

×
190
        release := builder
×
191
                           newClassNamed: #Release
×
192
                           comment:
×
193
                           'a Release is typically associated with a tag and provide additional metadata and assets that can be distributed to users'.
×
NEW
194

×
195
        issue := builder
×
196
                         newClassNamed: #Issue
×
197
                         comment:
×
198
                         'an Issues help collaboration within a team to plan, track, and deliver work'.
×
NEW
199

×
200
        milestone := builder
×
NEW
201
                             newClassNamed: #Milestone
×
NEW
202
                             comment:
×
NEW
203
                             'a Milestone is use to track progress on groups of issues or pull requests in a repository'
×
UNCOV
204
]
×
205

206
{ #category : #definition }
207
GLHMetamodelGenerator >> defineHierarchy [
×
208

×
209
        super defineHierarchy.
×
210
        entity --|> #TEntityMetaLevelDependency.
×
211
        fileDirectory --|> file.
×
212
        fileBlob --|> file.
×
213

×
214
        group --|> #TNamedEntity.
×
215
        project --|> #TNamedEntity.
×
216
        user --|> #TNamedEntity.
×
217
        commit --|> #TNamedEntity.
×
218
        diff --|> #TNamedEntity.
×
219
        job --|> #TNamedEntity.
×
220
        note --|> #TNamedEntity.
×
NEW
221
        notePosition  --|> #TNamedEntity.
×
NEW
222

×
223
        tRef --|> #TNamedEntity.
×
NEW
224
        tRef <|-- commit.
×
NEW
225
        tRef <|-- branch.
×
NEW
226
        tRef <|-- tag.
×
227

×
228
        change --|> #TNamedEntity.
×
229
        change <|-- addition.
×
230
        change <|-- deletion.
×
231
        change <|-- lineOfCode.
×
232
        mergeRequest --|> #TNamedEntity.
×
233

×
234
        issue --|> #TNamedEntity.
×
NEW
235
        milestone --|> #TNamedEntity
×
236
]
×
237

238
{ #category : #definition }
239
GLHMetamodelGenerator >> defineProperties [
×
240
        "Group properties"
×
241

×
242
        super defineProperties.
×
243
        self groupProperties.
×
244
        self projectProperties.
×
245
        self pipelinesProperties.
×
246
        self userProperties.
×
247
        self branchProperties.
×
248
        self fileProperties.
×
249
        self commitProperties.
×
250
        self diffProperties.
×
251
        self jobProperties.
×
252
        self changeProperties.
×
253
        self mergeRequestProperties.
×
254
        self diffRangeProperties.
×
255
        self noteProperties.
×
NEW
256
        self notePositionProperties.
×
257
        self tagProperties.
×
258
        self releaseProperties.
×
259
        self issueProperties.
×
260
        self milestoneProperties.
×
NEW
261

×
NEW
262
        self tRefProperties
×
UNCOV
263
]
×
264

265
{ #category : #definition }
266
GLHMetamodelGenerator >> defineRelations [
×
267
        "MERGE REQUEST RELATIONS""DIFF""TAG AND RELEASE"
×
268

×
269
        super defineRelations.
×
270
        (group property: #projects) <>-* (project property: #group).
×
271
        (group property: #subGroups) <>-* (group property: #group).
×
272

×
273
        (repository property: #branches) <>-* (branch property: #repository).
×
274
        (branch property: #files) <>-* (file property: #branch).
×
275
        (fileDirectory property: #files)
×
276
        <>-* (file property: #directoryOwner).
×
277
        (repository property: #commits) <>-* (commit property: #repository).
×
278
        "commit can appears in multiple branches. And a branch"
×
279
        (branch property: #commits) *-* (commit property: #branch).
×
280
        (commit property: #diffs) <>-* (diff property: #commit).
×
281
        (user property: #commits) <>-* (commit property: #commitCreator).
×
282
        (commit property: #parentCommits)
×
283
        *-* (commit property: #childCommits).
×
284
        (commit property: #jobs) <>-* (job property: #commit).
×
285
        (pipeline property: #jobs) <>-* (job property: #pipeline).
×
286
        (pipeline property: #user) *- (user property: #launchedPipelines).
×
287
        (user property: #jobs) <>-* (job property: #user).
×
288
        (diff property: #file) <>-* (file property: #diffs).
×
289
        (diff property: #diffRanges) <>-* (diffRange property: #diff).
×
290
        (diffRange property: #changes) -* (change property: #diffRange).
×
291

×
292
        self projectRelations.
×
293
        self tagRelations.
×
294
        self releaseRelations.
×
295
        self issueRelations.
×
296
        self mergeRequestsRelations.
×
297
        self noteRelations.
×
NEW
298
        self milestoneRelations.
×
NEW
299
        self notePositionRelations
×
UNCOV
300
]
×
301

302
{ #category : #definition }
303
GLHMetamodelGenerator >> defineTraits [
×
304
        super defineTraits.
×
305
        
×
306
        tRef := builder newTraitNamed: #TRef comment: 'I''m representing a Git reference, that is a reference point in a repository''s history'.
×
307
        "generate the identity isXXX method (see https://modularmoose.org/developers/create-new-metamodel/#generating-test-method)"
×
308
        tRef withTesting.
×
309
]
×
310

311
{ #category : #diffs }
312
GLHMetamodelGenerator >> diffProperties [
×
313

×
314
        (diff property: #diffString type: #String) comment:
×
315
                'The string presenting the diff. It should follow the [Detailed-Unified](https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html) format'.
×
316
                
×
317
        (diff property: #new_path type: #String) comment:
×
318
                'The path to the file in the resulted repository commitish'.
×
319
                
×
320
        (diff property: #old_path type: #String) comment:
×
321
                'The path to the file in the origin repository commitish'.
×
322
                
×
323
        (diff property: #new_file type: #Boolean defaultValue: false)
×
324
                comment: 'Is the file of the diff is a new file'.
×
325
                
×
326
        (diff property: #renamed_file type: #Boolean defaultValue: false)
×
327
                comment:
×
328
                'Is the file of the diff has been renamed (see old_path/new_path) file'.
×
329
                
×
330
        (diff property: #deleted_file type: #Boolean defaultValue: false)
×
331
                comment: 'Is the file of the diff has been removed'
×
332
]
×
333

334
{ #category : #diffs }
335
GLHMetamodelGenerator >> diffRangeProperties [
×
336
"must parse the range. 
×
337
        originalLineRange = '-120,5' --> change starts at line #120
×
338
        5 is the number of lines in the original file affected by the change"
×
339
        diffRange property: #originalLineRange type: #String.
×
340
        diffRange property: #newLineRange type: #String.
×
341
        diffRange property: #lineOfCode type: #String
×
342
]
×
343

×
344
{ #category : #files }
×
345
GLHMetamodelGenerator >> fileProperties [
×
346

×
347
        file property: #name type: #String
×
348
]
×
349

×
350
{ #category : #groups }
×
351
GLHMetamodelGenerator >> groupProperties [
×
352

×
353
        group property: #id type: #Number. "Group properties"
×
354
        group property: #web_url type: #String.
×
355
        group property: #description type: #String.
×
356
        group property: #visibility type: #String.
×
357
        group property: #avatar_url type: #String
×
358
]
×
359

×
360
{ #category : #issues }
×
361
GLHMetamodelGenerator >> issueProperties [
×
362

×
363
        issue property: #name type: #String.
×
364
        issue property: #description type: #String.
×
365
        issue property: #state type: #String.
×
366
        issue property: #id type: #Number.
×
367
        
×
368
        issue property: #created_at type: #Object.
×
369
        issue property: #updated_at type: #Object.
×
370
        issue property: #closed_at type: #Object.
×
371
        issue property: #due_date type: #Object.
×
372
]
×
373

×
374
{ #category : #issues }
×
375
GLHMetamodelGenerator >> issueRelations [
×
376

×
377
        issue *-<> project.
×
378
        (issue property: #assignees) <>-* (user property: #assignedIssue).
×
379
        (issue property: #author) *-<> (user property: #createdIssue)
×
380
]
×
381

×
382
{ #category : #jobs }
×
383
GLHMetamodelGenerator >> jobProperties [
×
384

×
385
        job property: #id type: #Number.
×
386
        job property: #allow_failure type: #Boolean.
×
387
        job property: #web_url type: #String.
×
388
        job property: #duration type: #Object.
×
389
        job property: #name type: #String. 
×
390
        job property: #ref type: #String.
×
391
]
×
392

×
393
{ #category : #'merge requests' }
×
394
GLHMetamodelGenerator >> mergeRequestProperties [
×
395

×
396
        mergeRequest property: #id type: #Number.
×
397
        mergeRequest property: #iid type: #Number.
×
398
        mergeRequest property: #project_id type: #Number.
×
399
        mergeRequest property: #title type: #String.
×
400
        mergeRequest property: #description type: #String.
×
401
        mergeRequest property: #state type: #String.
×
402
        mergeRequest property: #created_at type: #Object.
×
403
        mergeRequest property: #updated_at type: #Object.
×
404
        mergeRequest property: #merged_at type: #Object.
×
405
        mergeRequest property: #closed_at type: #Object.
×
406
        mergeRequest property: #target_branch type: #String.
×
407
        mergeRequest property: #source_branch type: #String.
×
408
        mergeRequest property: #user_notes_count type: #Number.
×
409
        mergeRequest property: #upvotes type: #Number.
×
410
        mergeRequest property: #downvotes type: #Number.
×
411
        mergeRequest property: #source_project_id type: #Number.
×
412
        mergeRequest property: #target_project_id type: #Number.
×
413
        mergeRequest property: #labels type: #Object.
×
414
        mergeRequest property: #draft type: #Boolean.
×
415
        mergeRequest property: #work_in_progress type: #Boolean.
×
416
        mergeRequest property: #milestone type: #String.
×
417
        mergeRequest property: #merge_when_pipeline_succeeds type: #Boolean.
×
418
        mergeRequest property: #merge_status type: #String.
×
419
        mergeRequest property: #detailed_merge_status type: #String.
×
420
        mergeRequest property: #sha type: #String.
×
421
        mergeRequest property: #merge_commit_sha type: #String.
×
422
        mergeRequest property: #squash_commit_sha type: #String.
×
423
        mergeRequest property: #discussion_locked type: #String.
×
424
        mergeRequest property: #should_remove_source_branch type: #Boolean.
×
425
        mergeRequest property: #force_remove_source_branch type: #Boolean.
×
426
        mergeRequest property: #reference type: #String.
×
427
        mergeRequest property: #references_short type: #String.
×
428
        mergeRequest property: #references_relative type: #String.
×
429
        mergeRequest property: #references_full type: #String.
×
430
        mergeRequest property: #web_url type: #String.
×
431
        mergeRequest property: #time_stats_time_estimate type: #Number.
×
432
        mergeRequest property: #time_stats_total_time_spent type: #Number.
×
433
        mergeRequest property: #time_stats_human_time_estimate type: #String.
×
434
        mergeRequest
×
435
                property: #time_stats_human_total_time_spent
×
436
                type: #String.
×
437
        mergeRequest property: #squash type: #Boolean.
×
438
        mergeRequest property: #squash_on_merge type: #Boolean.
×
439
        mergeRequest property: #task_completion_status_count type: #Number.
×
440
        mergeRequest
×
441
                property: #task_completion_status_completed_count
×
442
                type: #Number.
×
443
        mergeRequest property: #has_conflicts type: #Boolean.
×
444
        mergeRequest property: #blocking_discussions_resolved type: #Boolean.
×
445
        mergeRequest property: #subscribed type: #Boolean.
×
446
        mergeRequest property: #changes_count type: #String.
×
447
        mergeRequest property: #latest_build_started_at type: #String.
×
448
        mergeRequest property: #latest_build_finished_at type: #String.
×
449
        mergeRequest property: #first_deployed_to_production_at type: #String.
×
450
        mergeRequest property: #approved type: #Boolean.
×
451

×
452
        "see https://github.com/moosetechnology/GitProjectHealth/issues/88"
×
453
        mergeRequest property: #commits type: #Object
×
454
]
×
455

×
456
{ #category : #'merge requests' }
×
457
GLHMetamodelGenerator >> mergeRequestsRelations [
×
458

×
459
        (mergeRequest property: #author)
×
460
        *- (user property: #createdMergeRequests).
×
461
        (mergeRequest property: #approved_by)
×
462
        *-* (user property: #approcheMergeRequests).
×
463
        (mergeRequest property: #merge_user) *- (user property: #usedMerges).
×
464
        (mergeRequest property: #closed_by)
×
465
        *- (user property: #closedMergeRequests).
×
466
        (mergeRequest property: #merged_by)
×
467
        *- (user property: #mergerOfMergeRequests).
×
468
        (mergeRequest property: #assignees)
×
469
        *-* (user property: #assignedMergeRequests).
×
470
        (mergeRequest property: #assignee)
×
471
        *- (user property: #currentlyAssignedMergeRequest).
×
472
        (mergeRequest property: #reviewers)
×
473
        *-* (user property: #reviewedMergeRequest).
×
474
        (mergeRequest property: #pipelines)
×
475
        <>-* (pipeline property: #mergeRequest).
×
476
        (mergeRequest property: #mergedCommit)
×
477
        - (commit property: #commitedMergeRequest).
×
478
        (mergeRequest property: #mergeRequestCommit)
×
479
        - (commit property: #commitedMergeRequest).
×
480
        (mergeRequest property: #squashCommit)
×
481
        - (commit property: #squashedMergeRequest).
×
482
        (mergeRequest property: #diffs) -* (diff property: #mergeRequest).
×
483
        (project property: #mergeRequests)
×
484
        <>-* (mergeRequest property: #project).
×
485

×
486
]
×
487

×
488
{ #category : #milestones }
×
489
GLHMetamodelGenerator >> milestoneProperties [
×
490

×
491
        milestone property: #id type: #Number.
×
492
        milestone property: #title type: #String.
×
493
        milestone property: #description type: #String.
×
494
        
×
495
        milestone property: #open_issues type: #Number .
×
496
        milestone property: #closed_issues type: #Number.
×
497

×
498
        milestone property: #created_at type: #Object.
×
499
        milestone property: #updated_at type: #Object.
×
500
        milestone property: #closed_at type: #Object.
×
501
        milestone property: #due_date type: #Object
×
502
]
×
503

×
504
{ #category : #milestones }
×
505
GLHMetamodelGenerator >> milestoneRelations [
×
506

×
507
        (milestone property: #project) *-<> (project property: #milestone).
×
508
        (milestone property: #author) <>- (user property: #createdMilestone).
×
509
        
×
510
        (milestone property: #issue) <>-* (issue property: #milestone).
×
511
        (milestone property: #mergeRequest) <>-* (mergeRequest property: #milestone).
×
512
]
×
513

×
NEW
514
{ #category : #notes }
×
NEW
515
GLHMetamodelGenerator >> notePositionProperties [
×
NEW
516

×
NEW
517
        notePosition property: #file_path type: #String.
×
NEW
518
        notePosition property: #original_file_path type: #String.
×
NEW
519
        notePosition property: #start_line type: #Number.
×
NEW
520
        notePosition property: #start_line_type type: #String.
×
NEW
521
        notePosition property: #end_line type: #Number.
×
NEW
522
        notePosition property: #end_line_type type: #String.
×
NEW
523
]
×
NEW
524

×
NEW
525
{ #category : #notes }
×
NEW
526
GLHMetamodelGenerator >> notePositionRelations [
×
NEW
527

×
NEW
528
         (notePosition property: #note) - (note property: #position)
×
NEW
529
]
×
NEW
530

×
531
{ #category : #notes }
×
532
GLHMetamodelGenerator >> noteProperties [ 
×
533
        note property: #id type: #Number.
×
534
        note property: #body type: #String. 
×
535
        note property: #attachment type: #Object.
×
536
        note property: #author type: #Object.
×
537
        note property: #created_at type: #Object.
×
538
        note property: #updated_at type: #Object.
×
539
        note property: #system type: #Boolean.
×
540
        note property: #noteable_id type: #Number.
×
541
        note property: #noteable_type type: #String.
×
542
        note property: #project_id type: #Number.
×
543
        note property: #noteable_iid type: #Number.
×
544
        note property: #resolvable type: #Boolean.
×
545
        note property: #confidential type: #Boolean.
×
546
        note property: #internal type: #Boolean.
×
547
        note property: #imported type: #Boolean.
×
548
        note property: #imported_from type: #String.
×
549
         
×
550
 
×
551
 
×
552
 
×
553
 
×
554
 
×
555
 
×
556
 
×
557
 
×
558

×
559
]
×
560

×
NEW
561
{ #category : #notes }
×
562
GLHMetamodelGenerator >> noteRelations [
×
563

×
NEW
564
        (note property: #mergeRequest) *- (mergeRequest property: #note).
×
NEW
565
        (note property: #position) - (notePosition property: #note)
×
566
]
×
567

×
568
{ #category : #pipelines }
×
569
GLHMetamodelGenerator >> pipelinesProperties [
×
570
        
×
571
        "Pipelines properties"
×
572
        
×
573
        (pipeline property: #id type: #String) comment:
×
574
                'The id of the pipeline'.
×
575
        (pipeline property: #name type: #String) comment:
×
576
                'name of the pipeline'.        
×
577
                        
×
578
        (pipeline property: #status type: #String) comment:
×
579
                '#success or #failure'.        
×
580
        (pipeline property: #ref type: #String) comment:
×
581
                'reference its emmited source (merge request or else)'.        
×
582
        (pipeline property: #sha type: #String) comment:
×
583
                'sha of its emmited source'.        
×
584
        
×
585
        (pipeline property: #sourceEvent type: #String) comment: 'triggering event from where the pipeline originate, such as #push #fork, etc.'.
×
586
        
×
587
        (pipeline property: #runDate type: #Object) comment:
×
588
                'Date this pipeline was run'.
×
589
        (pipeline property: #created_at type: #Object) comment: 'creation date of the pipeline'.
×
590
        (pipeline property: #updated_at type: #Object) comment: 'update date of the pipeline'.
×
591
        (pipeline property: #started_at type: #Object) comment: 'start date of the pipeline'.
×
592
        (pipeline property: #finished_at type: #Object) comment: 'finish date of the pipeline'.        
×
593
        (pipeline property: #duration type: #Object) comment: 'the running duration of a pipeline'.
×
594

×
595
]
×
596

×
597
{ #category : #projects }
×
598
GLHMetamodelGenerator >> projectProperties [
×
599

×
600
        project property: #id type: #Number. "Project properties"
×
601
        project property: #topics type: #Object.
×
602
        project property: #archived type: #Boolean.
×
603
        project property: #archived type: #Boolean.
×
604
        project property: #description type: #String.
×
605
        project property: #readme_url type: #String.
×
606
        project property: #avatar_url type: #String.
×
607
        project property: #web_url type: #String.
×
608
        project property: #creator_id type: #Number
×
609
]
×
610

×
611
{ #category : #projects }
×
612
GLHMetamodelGenerator >> projectRelations [
×
613

×
614
        (project property: #pipelines) <>-* (pipeline property: #project).
×
615
        (project property: #creator) *- (user property: #createdProjects).
×
616
        (project property: #contributors)
×
617
        *-* (user property: #contributedProjects).
×
618
        (project property: #repository) <>- (repository property: #project)
×
619
]
×
620

×
621
{ #category : #releases }
×
622
GLHMetamodelGenerator >> releaseProperties [
×
623

×
624
        release property: #description type: #String.
×
625
        release property: #tag_name type: #String.
×
626
        release property: #name type: #String.
×
627
        
×
628
        release property: #created_at type: #Object.
×
629
        release property: #released_at type: #Object.
×
630
        release property: #commit_path type: #String.
×
631
        release property: #tag_path type: #String.
×
632
]
×
633

×
634
{ #category : #releases }
×
635
GLHMetamodelGenerator >> releaseRelations [
×
636

×
637
        (release property: #author) *-<> (user property: #releases).
×
638
        (release property: #project) *-<> (project property: #releases)
×
639
]
×
640

×
641
{ #category : #'as yet unclassified' }
×
642
GLHMetamodelGenerator >> tRefProperties [
×
643
        "define the properties of a ref instance"
×
644

×
645
        tRef property: #sha type: #String.
×
646
]
×
647

×
648
{ #category : #tags }
×
649
GLHMetamodelGenerator >> tagProperties [
×
650

×
651
        tag property: #message type: #String.
×
652
        tag property: #target type: #String.
×
653
        tag property: #protected type: #Boolean.
×
654
        tag property: #created_at type: #Object.
×
655

×
656
]
×
657

×
658
{ #category : #tags }
×
659
GLHMetamodelGenerator >> tagRelations [
×
660
        (tag property: #commit) - (commit property: #tag).
×
661
        (tag property: #release) - (release property: #tag).
×
662
        (tag property: #repository) *-<> (repository property: #tags).
×
663
]
×
664

×
665
{ #category : #users }
×
666
GLHMetamodelGenerator >> userProperties [
×
667

×
668
        user property: #id type: #Number.
×
669
        user property: #username type: #String.
×
670
        user property: #name type: #String.
×
671
        user property: #state type: #String.
×
672
        user property: #avatar_url type: #String.
×
673
        user property: #web_url type: #String.
×
674
        user property: #created_at type: #String.
×
675
        user property: #bio type: #String.
×
676
        user property: #location type: #String.
×
677
        user property: #public_email type: #String.
×
678
        user property: #email type: #String.
×
679
        user property: #commit_email type: #String.
×
680
        user property: #skype type: #String.
×
681
        user property: #linkedin type: #String.
×
682
        user property: #twitter type: #String.
×
683
        user property: #website_url type: #String.
×
684
        user property: #organization type: #String.
×
685
        user property: #job_title type: #String.
×
686
        user property: #pronouns type: #String.
×
687
        user property: #bot type: #String.
×
688
        user property: #work_information type: #String.
×
689
        user property: #followers type: #String.
×
690
        user property: #following type: #String
×
691
]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc