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

moosetechnology / GitProjectHealth / 10319754420

09 Aug 2024 01:06PM UTC coverage: 20.297%. First build
10319754420

Pull #22

github

web-flow
Merge 9483dc5f2 into ff6cec92d
Pull Request #22: Jira connector

115 of 164 new or added lines in 4 files covered. (70.12%)

1629 of 8026 relevant lines covered (20.3%)

0.2 hits per line

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

88.57
/src/GitProject-JiraConnector/GPJCConnector.class.st
1
"
2
I connect a `JPModel` with a `GLHModel` using the relation define in the `GPJCModel` metamodel.
3

4
You can use me with
5

6
```st
7
GPJCConnector new
8
        gpModel: aGpModel; ""or glh model""
9
        jiraModel: aJiraModel;
10
        connect
11
```
12

13
I also ensure to not repeat relations (you can execute me multiple times safely)
14
"
15
Class {
16
        #name : #GPJCConnector,
17
        #superclass : #Object,
18
        #instVars : [
19
                'jiraModel',
20
                'gpModel'
21
        ],
22
        #category : #'GitProject-JiraConnector'
23
}
24

25
{ #category : #accessing }
26
GPJCConnector >> connect [
1✔
27

1✔
28
        (self gpModel allWithType: GLHCommit) do: [ :commit |
1✔
29
                self connectCommit: commit ].
1✔
30
        (self gpModel allWithType: GLPHEMergeRequest) do: [ :mergeRequest |
1✔
31
                self connectMergeRequest: mergeRequest ]
1✔
32
]
1✔
33

34
{ #category : #accessing }
35
GPJCConnector >> connectCommit: commit [
1✔
36

1✔
37
        (jiraModel allWithType: JPIssue)
1✔
38
                detect: [ :issue | commit message includesSubstring: issue key ]
1✔
39
                ifFound: [ :issue | commit jiraIssue: issue ]
1✔
40
]
1✔
41

42
{ #category : #accessing }
43
GPJCConnector >> connectMergeRequest: mergeRequest [
1✔
44

1✔
45
        (jiraModel allWithType: JPIssue)
1✔
46
                detect: [ :issue | mergeRequest title includesSubstring: issue key ]
1✔
47
                ifFound: [ :issue | mergeRequest jiraIssue: issue ]
1✔
48
]
1✔
49

50
{ #category : #accessing }
51
GPJCConnector >> gpModel [
1✔
52

1✔
53
        ^ gpModel
1✔
54
]
1✔
55

56
{ #category : #accessing }
57
GPJCConnector >> gpModel: anObject [
1✔
58

1✔
59
        gpModel := anObject
1✔
60
]
1✔
61

62
{ #category : #accessing }
NEW
63
GPJCConnector >> jiraModel [
×
NEW
64

×
NEW
65
        ^ jiraModel
×
NEW
66
]
×
67

68
{ #category : #accessing }
69
GPJCConnector >> jiraModel: anObject [
1✔
70

1✔
71
        jiraModel := anObject
1✔
72
]
1✔
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