-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
changes.parsers
69 lines (62 loc) · 1.55 KB
/
changes.parsers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Changes: A Microlang for Change Logs.
versionParser
crux 📦
atoms cueAtom semanticVersionAtom dateAtom
description What is the semantic version number?
extends h1Parser
// Todo: mixins in Parsers would make this easier.
boolean isMeasure true
boolean isMeasureRequired true
boolean isConceptDelimiter true
float sortIndex 1
javascript
get measureValue() {
return this.getAtom(1)
}
measureName = "version"
bugFixParser
crux 🏥
extends abstractCustomListItemParser
newFeatureParser
crux 🎉
extends abstractCustomListItemParser
breakingChangeParser
crux ⚠️
extends abstractCustomListItemParser
styleTweakParser
crux 🎨
extends abstractCustomListItemParser
releaseDateParser
extends abstractMeasureParser
boolean isMeasureRequired true
boolean isComputed true
float sortIndex 1.1
javascript
computeValue(concept) {
return concept.particleAt(0).getAtom(2)
}
abstractSummaryParser
extends abstractMeasureParser
boolean isComputed true
float sortIndex 1.2
bugFixesParser
extends abstractSummaryParser
description How many bug fixes in this release?
javascript
computeValue(concept) {
return concept.findParticles("🏥").length
}
newFeaturesParser
extends abstractSummaryParser
description How many new features in this release?
javascript
computeValue(concept) {
return concept.findParticles("🎉").length
}
breakingChangesParser
extends abstractSummaryParser
description How many breaking changes in this release?
javascript
computeValue(concept) {
return concept.findParticles("⚠️").length
}