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

moosetechnology / GitProjectHealth / 18683700842

21 Oct 2025 12:24PM UTC coverage: 77.732% (-0.2%) from 77.946%
18683700842

Pull #237

github

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

60 of 172 new or added lines in 6 files covered. (34.88%)

3 existing lines in 1 file now uncovered.

23123 of 29747 relevant lines covered (77.73%)

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
        note := builder
×
NEW
181
                        newClassNamed: #Note
×
NEW
182
                        comment:
×
NEW
183
                        'a note (a diff) proposed in a Merge Request; can be accepted, modified or deleted'.
×
NEW
184
                
×
NEW
185
        notePosition := builder
×
NEW
186
                        newClassNamed: #NotePosition
×
NEW
187
                        comment:
×
NEW
188
                        'indicate the position of a note'.
×
189

×
190
        tag := builder
×
191
                       newClassNamed: #Tag
×
192
                       comment:
×
193
                       'a Tag is a reference to a specific point in the repository''s history'.
×
194

×
195

×
196
        release := builder
×
197
                           newClassNamed: #Release
×
198
                           comment:
×
199
                           'a Release is typically associated with a tag and provide additional metadata and assets that can be distributed to users'.
×
NEW
200

×
201
        issue := builder
×
202
                         newClassNamed: #Issue
×
203
                         comment:
×
204
                         'an Issues help collaboration within a team to plan, track, and deliver work'.
×
NEW
205

×
206
        milestone := builder
×
NEW
207
                             newClassNamed: #Milestone
×
NEW
208
                             comment:
×
NEW
209
                             'a Milestone is use to track progress on groups of issues or pull requests in a repository'
×
UNCOV
210
]
×
211

212
{ #category : #definition }
213
GLHMetamodelGenerator >> defineHierarchy [
×
214

×
215
        super defineHierarchy.
×
216
        entity --|> #TEntityMetaLevelDependency.
×
217
        fileDirectory --|> file.
×
218
        fileBlob --|> file.
×
219

×
220
        group --|> #TNamedEntity.
×
221
        project --|> #TNamedEntity.
×
222
        user --|> #TNamedEntity.
×
223
        commit --|> #TNamedEntity.
×
224
        diff --|> #TNamedEntity.
×
225
        job --|> #TNamedEntity.
×
226
        note --|> #TNamedEntity.
×
NEW
227
        notePosition  --|> #TNamedEntity.
×
NEW
228

×
229
        tRef --|> #TNamedEntity.
×
NEW
230
        tRef <|-- commit.
×
NEW
231
        tRef <|-- branch.
×
NEW
232
        tRef <|-- tag.
×
233

×
234
        change --|> #TNamedEntity.
×
235
        change <|-- addition.
×
236
        change <|-- deletion.
×
237
        change <|-- lineOfCode.
×
238
        mergeRequest --|> #TNamedEntity.
×
239

×
240
        issue --|> #TNamedEntity.
×
NEW
241
        milestone --|> #TNamedEntity
×
242
]
×
243

244
{ #category : #definition }
245
GLHMetamodelGenerator >> defineProperties [
×
246
        "Group properties"
×
247

×
248
        super defineProperties.
×
249
        self groupProperties.
×
250
        self projectProperties.
×
251
        self pipelinesProperties.
×
252
        self userProperties.
×
253
        self branchProperties.
×
254
        self fileProperties.
×
255
        self commitProperties.
×
256
        self diffProperties.
×
257
        self jobProperties.
×
258
        self changeProperties.
×
259
        self mergeRequestProperties.
×
260
        self diffRangeProperties.
×
261
        self noteProperties.
×
NEW
262
        self notePositionProperties.
×
263
        self tagProperties.
×
264
        self releaseProperties.
×
265
        self issueProperties.
×
266
        self milestoneProperties.
×
NEW
267

×
NEW
268
        self tRefProperties
×
UNCOV
269
]
×
270

271
{ #category : #definition }
272
GLHMetamodelGenerator >> defineRelations [
×
273
        "MERGE REQUEST RELATIONS""DIFF""TAG AND RELEASE"
×
274

×
275
        super defineRelations.
×
276
        (group property: #projects) <>-* (project property: #group).
×
277
        (group property: #subGroups) <>-* (group property: #group).
×
278

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

×
298
        self projectRelations.
×
299
        self tagRelations.
×
300
        self releaseRelations.
×
301
        self issueRelations.
×
302
        self mergeRequestsRelations.
×
303
        self noteRelations.
×
NEW
304
        self milestoneRelations.
×
NEW
305
        self notePositionRelations
×
UNCOV
306
]
×
307

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

317
{ #category : #diffs }
318
GLHMetamodelGenerator >> diffProperties [
×
319

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

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

×
350
{ #category : #files }
×
351
GLHMetamodelGenerator >> fileProperties [
×
352

×
353
        file property: #name type: #String
×
354
]
×
355

×
356
{ #category : #groups }
×
357
GLHMetamodelGenerator >> groupProperties [
×
358

×
359
        group property: #id type: #Number. "Group properties"
×
360
        group property: #web_url type: #String.
×
361
        group property: #description type: #String.
×
362
        group property: #visibility type: #String.
×
363
        group property: #avatar_url type: #String
×
364
]
×
365

×
366
{ #category : #issues }
×
367
GLHMetamodelGenerator >> issueProperties [
×
368

×
369
        issue property: #name type: #String.
×
370
        issue property: #description type: #String.
×
371
        issue property: #state type: #String.
×
372
        issue property: #id type: #Number.
×
373
        
×
374
        issue property: #created_at type: #Object.
×
375
        issue property: #updated_at type: #Object.
×
376
        issue property: #closed_at type: #Object.
×
377
        issue property: #due_date type: #Object.
×
378
]
×
379

×
380
{ #category : #issues }
×
381
GLHMetamodelGenerator >> issueRelations [
×
382

×
383
        issue *-<> project.
×
384
        (issue property: #assignees) <>-* (user property: #assignedIssue).
×
385
        (issue property: #author) *-<> (user property: #createdIssue)
×
386
]
×
387

×
388
{ #category : #jobs }
×
389
GLHMetamodelGenerator >> jobProperties [
×
390

×
391
        job property: #id type: #Number.
×
392
        job property: #allow_failure type: #Boolean.
×
393
        job property: #web_url type: #String.
×
394
        job property: #duration type: #Object.
×
395
        job property: #name type: #String. 
×
396
        job property: #ref type: #String.
×
397
]
×
398

×
399
{ #category : #'merge requests' }
×
400
GLHMetamodelGenerator >> mergeRequestProperties [
×
401

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

×
458
        "see https://github.com/moosetechnology/GitProjectHealth/issues/88"
×
459
        mergeRequest property: #commits type: #Object
×
460
]
×
461

×
462
{ #category : #'merge requests' }
×
463
GLHMetamodelGenerator >> mergeRequestsRelations [
×
464

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

×
492
]
×
493

×
494
{ #category : #milestones }
×
495
GLHMetamodelGenerator >> milestoneProperties [
×
496

×
497
        milestone property: #id type: #Number.
×
498
        milestone property: #title type: #String.
×
499
        milestone property: #description type: #String.
×
500
        
×
501
        milestone property: #open_issues type: #Number .
×
502
        milestone property: #closed_issues type: #Number.
×
503

×
504
        milestone property: #created_at type: #Object.
×
505
        milestone property: #updated_at type: #Object.
×
506
        milestone property: #closed_at type: #Object.
×
507
        milestone property: #due_date type: #Object
×
508
]
×
509

×
510
{ #category : #milestones }
×
511
GLHMetamodelGenerator >> milestoneRelations [
×
512

×
513
        (milestone property: #project) *-<> (project property: #milestone).
×
514
        (milestone property: #author) <>- (user property: #createdMilestone).
×
515
        
×
516
        (milestone property: #issue) <>-* (issue property: #milestone).
×
517
        (milestone property: #mergeRequest) <>-* (mergeRequest property: #milestone).
×
518
]
×
519

×
NEW
520
{ #category : #notes }
×
NEW
521
GLHMetamodelGenerator >> notePositionProperties [
×
NEW
522

×
NEW
523
        notePosition property: #file_path type: #String.
×
NEW
524
        notePosition property: #original_file_path type: #String.
×
NEW
525
        notePosition property: #start_line type: #Number.
×
NEW
526
        notePosition property: #start_line_type type: #String.
×
NEW
527
        notePosition property: #end_line type: #Number.
×
NEW
528
        notePosition property: #end_line_type type: #String.
×
NEW
529
        notePosition property: #note type: #Object
×
NEW
530
]
×
NEW
531

×
NEW
532
{ #category : #notes }
×
NEW
533
GLHMetamodelGenerator >> notePositionRelations [
×
NEW
534

×
NEW
535
         (notePosition property: #note) - (note property: #position)
×
NEW
536
]
×
NEW
537

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

×
566
]
×
567

×
NEW
568
{ #category : #notes }
×
569
GLHMetamodelGenerator >> noteRelations [
×
570

×
NEW
571
        (note property: #position) - (notePosition property: #note).
×
572
]
×
573

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

×
601
]
×
602

×
603
{ #category : #projects }
×
604
GLHMetamodelGenerator >> projectProperties [
×
605

×
606
        project property: #id type: #Number. "Project properties"
×
607
        project property: #topics type: #Object.
×
608
        project property: #archived type: #Boolean.
×
609
        project property: #archived type: #Boolean.
×
610
        project property: #description type: #String.
×
611
        project property: #readme_url type: #String.
×
612
        project property: #avatar_url type: #String.
×
613
        project property: #web_url type: #String.
×
614
        project property: #creator_id type: #Number
×
615
]
×
616

×
617
{ #category : #projects }
×
618
GLHMetamodelGenerator >> projectRelations [
×
619

×
620
        (project property: #pipelines) <>-* (pipeline property: #project).
×
621
        (project property: #creator) *- (user property: #createdProjects).
×
622
        (project property: #contributors)
×
623
        *-* (user property: #contributedProjects).
×
624
        (project property: #repository) <>- (repository property: #project)
×
625
]
×
626

×
627
{ #category : #releases }
×
628
GLHMetamodelGenerator >> releaseProperties [
×
629

×
630
        release property: #description type: #String.
×
631
        release property: #tag_name type: #String.
×
632
        release property: #name type: #String.
×
633
        
×
634
        release property: #created_at type: #Object.
×
635
        release property: #released_at type: #Object.
×
636
        release property: #commit_path type: #String.
×
637
        release property: #tag_path type: #String.
×
638
]
×
639

×
640
{ #category : #releases }
×
641
GLHMetamodelGenerator >> releaseRelations [
×
642

×
643
        (release property: #author) *-<> (user property: #releases).
×
644
        (release property: #project) *-<> (project property: #releases)
×
645
]
×
646

×
647
{ #category : #'as yet unclassified' }
×
648
GLHMetamodelGenerator >> tRefProperties [
×
649
        "define the properties of a ref instance"
×
650

×
651
        tRef property: #sha type: #String.
×
652
]
×
653

×
654
{ #category : #tags }
×
655
GLHMetamodelGenerator >> tagProperties [
×
656

×
657
        tag property: #message type: #String.
×
658
        tag property: #target type: #String.
×
659
        tag property: #protected type: #Boolean.
×
660
        tag property: #created_at type: #Object.
×
661

×
662
]
×
663

×
664
{ #category : #tags }
×
665
GLHMetamodelGenerator >> tagRelations [
×
666
        (tag property: #commit) - (commit property: #tag).
×
667
        (tag property: #release) - (release property: #tag).
×
668
        (tag property: #repository) *-<> (repository property: #tags).
×
669
]
×
670

×
671
{ #category : #users }
×
672
GLHMetamodelGenerator >> userProperties [
×
673

×
674
        user property: #id type: #Number.
×
675
        user property: #username type: #String.
×
676
        user property: #name type: #String.
×
677
        user property: #state type: #String.
×
678
        user property: #avatar_url type: #String.
×
679
        user property: #web_url type: #String.
×
680
        user property: #created_at type: #String.
×
681
        user property: #bio type: #String.
×
682
        user property: #location type: #String.
×
683
        user property: #public_email type: #String.
×
684
        user property: #email type: #String.
×
685
        user property: #commit_email type: #String.
×
686
        user property: #skype type: #String.
×
687
        user property: #linkedin type: #String.
×
688
        user property: #twitter type: #String.
×
689
        user property: #website_url type: #String.
×
690
        user property: #organization type: #String.
×
691
        user property: #job_title type: #String.
×
692
        user property: #pronouns type: #String.
×
693
        user property: #bot type: #String.
×
694
        user property: #work_information type: #String.
×
695
        user property: #followers type: #String.
×
696
        user property: #following type: #String
×
697
]
×
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