git-digger 1.4.30 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1398 -1400
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt.js +3308 -3654
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +488 -475
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +7448 -7526
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +992 -992
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +325 -325
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/markdown.js +6759 -0
- package/kotlin/markdown.js.map +1 -0
- package/kotlin/mordant-mordant.js +3994 -2311
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-cli-tools.js.map +1 -1
- package/kotlin/tools-digger-cli.js +84 -87
- package/kotlin/tools-digger-cli.js.map +1 -1
- package/kotlin/tools-digger-core.js +242 -242
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +117 -117
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +59 -59
- package/kotlin/tools-git-adapter.js +95 -95
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/package.json +1 -1
- package/kotlin/clikt-clikt-mordant.js +0 -306
- package/kotlin/clikt-clikt-mordant.js.map +0 -1
- package/kotlin/mordant-mordant-omnibus.js +0 -8
- package/kotlin/mordant-mordant-omnibus.js.map +0 -1
|
@@ -2,64 +2,64 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
6
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
7
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
8
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
9
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
10
|
-
var to = kotlin_kotlin.$_$.
|
|
11
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
12
|
-
var Pair = kotlin_kotlin.$_$.
|
|
13
|
-
var listOf = kotlin_kotlin.$_$.
|
|
14
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
15
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
16
|
-
var plus = kotlin_kotlin.$_$.
|
|
17
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
18
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
19
|
-
var last = kotlin_kotlin.$_$.
|
|
20
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
21
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
22
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
-
var equals = kotlin_kotlin.$_$.
|
|
25
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
26
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
27
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
28
|
-
var maxOrNull = kotlin_kotlin.$_$.
|
|
5
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
6
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.l3;
|
|
8
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.i4;
|
|
9
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
10
|
+
var to = kotlin_kotlin.$_$.ed;
|
|
11
|
+
var firstOrNull = kotlin_kotlin.$_$.y4;
|
|
12
|
+
var Pair = kotlin_kotlin.$_$.gc;
|
|
13
|
+
var listOf = kotlin_kotlin.$_$.s5;
|
|
14
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.h4;
|
|
15
|
+
var getOrNull = kotlin_kotlin.$_$.c5;
|
|
16
|
+
var plus = kotlin_kotlin.$_$.c6;
|
|
17
|
+
var emptyList = kotlin_kotlin.$_$.u4;
|
|
18
|
+
var plus_0 = kotlin_kotlin.$_$.d6;
|
|
19
|
+
var last = kotlin_kotlin.$_$.q5;
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.y8;
|
|
21
|
+
var getStringHashCode = kotlin_kotlin.$_$.b8;
|
|
22
|
+
var hashCode = kotlin_kotlin.$_$.c8;
|
|
23
|
+
var THROW_CCE = kotlin_kotlin.$_$.jc;
|
|
24
|
+
var equals = kotlin_kotlin.$_$.w7;
|
|
25
|
+
var classMeta = kotlin_kotlin.$_$.u7;
|
|
26
|
+
var setMetadataFor = kotlin_kotlin.$_$.z8;
|
|
27
|
+
var lastOrNull = kotlin_kotlin.$_$.n5;
|
|
28
|
+
var maxOrNull = kotlin_kotlin.$_$.w5;
|
|
29
29
|
var Contribution = kotlin_com_zegreatrob_tools_digger_model.$_$.a;
|
|
30
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
31
|
-
var addAll = kotlin_kotlin.$_$.
|
|
32
|
-
var toSet = kotlin_kotlin.$_$.
|
|
33
|
-
var sorted = kotlin_kotlin.$_$.
|
|
34
|
-
var toList = kotlin_kotlin.$_$.
|
|
35
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
36
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
37
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
30
|
+
var listOf_0 = kotlin_kotlin.$_$.t5;
|
|
31
|
+
var addAll = kotlin_kotlin.$_$.z3;
|
|
32
|
+
var toSet = kotlin_kotlin.$_$.b7;
|
|
33
|
+
var sorted = kotlin_kotlin.$_$.o6;
|
|
34
|
+
var toList = kotlin_kotlin.$_$.w6;
|
|
35
|
+
var joinToString = kotlin_kotlin.$_$.h5;
|
|
36
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
37
|
+
var objectMeta = kotlin_kotlin.$_$.x8;
|
|
38
38
|
var VOID = kotlin_kotlin.$_$.g;
|
|
39
|
-
var take = kotlin_kotlin.$_$.
|
|
39
|
+
var take = kotlin_kotlin.$_$.s6;
|
|
40
40
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.h;
|
|
41
|
-
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
42
|
-
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.
|
|
43
|
-
var contains = kotlin_kotlin.$_$.
|
|
44
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
41
|
+
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.v;
|
|
42
|
+
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
43
|
+
var contains = kotlin_kotlin.$_$.ea;
|
|
44
|
+
var mapOf = kotlin_kotlin.$_$.v5;
|
|
45
45
|
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.i;
|
|
46
|
-
var setOf = kotlin_kotlin.$_$.
|
|
47
|
-
var Regex = kotlin_kotlin.$_$.
|
|
48
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
49
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
50
|
-
var Char = kotlin_kotlin.$_$.
|
|
51
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
52
|
-
var mapNotNull = kotlin_kotlin.$_$.
|
|
53
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
54
|
-
var maxOrNull_0 = kotlin_kotlin.$_$.
|
|
55
|
-
var get = kotlin_kotlin.$_$.
|
|
56
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
57
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
58
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
59
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
60
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
61
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
62
|
-
var Enum = kotlin_kotlin.$_$.
|
|
46
|
+
var setOf = kotlin_kotlin.$_$.i6;
|
|
47
|
+
var Regex = kotlin_kotlin.$_$.aa;
|
|
48
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.ja;
|
|
49
|
+
var lastIndexOf = kotlin_kotlin.$_$.va;
|
|
50
|
+
var Char = kotlin_kotlin.$_$.xb;
|
|
51
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
|
|
52
|
+
var mapNotNull = kotlin_kotlin.$_$.w9;
|
|
53
|
+
var toList_0 = kotlin_kotlin.$_$.z9;
|
|
54
|
+
var maxOrNull_0 = kotlin_kotlin.$_$.y9;
|
|
55
|
+
var get = kotlin_kotlin.$_$.la;
|
|
56
|
+
var toIntOrNull = kotlin_kotlin.$_$.ob;
|
|
57
|
+
var Companion_instance = kotlin_kotlin.$_$.g3;
|
|
58
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x1;
|
|
59
|
+
var createFailure = kotlin_kotlin.$_$.wc;
|
|
60
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.a2;
|
|
61
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.y1;
|
|
62
|
+
var Enum = kotlin_kotlin.$_$.bc;
|
|
63
63
|
//endregion
|
|
64
64
|
//region block: pre-declaration
|
|
65
65
|
setMetadataFor(CommitInspectionResult, 'CommitInspectionResult', classMeta);
|
|
@@ -75,32 +75,32 @@
|
|
|
75
75
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
76
76
|
var set = HashSet_init_$Create$();
|
|
77
77
|
var list = ArrayList_init_$Create$();
|
|
78
|
-
var tmp0_iterator = tagRefs.
|
|
79
|
-
while (tmp0_iterator.
|
|
80
|
-
var e = tmp0_iterator.
|
|
78
|
+
var tmp0_iterator = tagRefs.r();
|
|
79
|
+
while (tmp0_iterator.s()) {
|
|
80
|
+
var e = tmp0_iterator.u();
|
|
81
81
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
82
|
-
var key = e.
|
|
83
|
-
if (set.
|
|
84
|
-
list.
|
|
82
|
+
var key = e.x17_1;
|
|
83
|
+
if (set.o(key)) {
|
|
84
|
+
list.o(e);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
// Inline function 'kotlin.collections.filterTo' call
|
|
88
88
|
var destination = ArrayList_init_$Create$();
|
|
89
|
-
var tmp0_iterator_0 = list.
|
|
90
|
-
while (tmp0_iterator_0.
|
|
91
|
-
var element = tmp0_iterator_0.
|
|
89
|
+
var tmp0_iterator_0 = list.r();
|
|
90
|
+
while (tmp0_iterator_0.s()) {
|
|
91
|
+
var element = tmp0_iterator_0.u();
|
|
92
92
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
93
93
|
// Inline function 'kotlin.collections.map' call
|
|
94
94
|
// Inline function 'kotlin.collections.mapTo' call
|
|
95
95
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fullLog, 10));
|
|
96
|
-
var tmp0_iterator_1 = fullLog.
|
|
97
|
-
while (tmp0_iterator_1.
|
|
98
|
-
var item = tmp0_iterator_1.
|
|
99
|
-
var tmp$ret$2 = item.
|
|
100
|
-
destination_0.
|
|
96
|
+
var tmp0_iterator_1 = fullLog.r();
|
|
97
|
+
while (tmp0_iterator_1.s()) {
|
|
98
|
+
var item = tmp0_iterator_1.u();
|
|
99
|
+
var tmp$ret$2 = item.i17_1;
|
|
100
|
+
destination_0.o(tmp$ret$2);
|
|
101
101
|
}
|
|
102
|
-
if (destination_0.
|
|
103
|
-
destination.
|
|
102
|
+
if (destination_0.n(element.x17_1)) {
|
|
103
|
+
destination.o(element);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
return sortIntoTagSets(_this__u8e3s4, destination, fullLog);
|
|
@@ -111,34 +111,34 @@
|
|
|
111
111
|
var this_0 = tagPairs(tagRefs);
|
|
112
112
|
// Inline function 'kotlin.collections.mapTo' call
|
|
113
113
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
114
|
-
var tmp0_iterator = this_0.
|
|
115
|
-
while (tmp0_iterator.
|
|
116
|
-
var item = tmp0_iterator.
|
|
114
|
+
var tmp0_iterator = this_0.r();
|
|
115
|
+
while (tmp0_iterator.s()) {
|
|
116
|
+
var item = tmp0_iterator.u();
|
|
117
117
|
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
118
|
-
var earlierTag = item.
|
|
119
|
-
var nextTag = item.
|
|
118
|
+
var earlierTag = item.a6();
|
|
119
|
+
var nextTag = item.b6();
|
|
120
120
|
var tmp;
|
|
121
121
|
if (earlierTag == null ? !(nextTag == null) : false) {
|
|
122
|
-
tmp = _this__u8e3s4.
|
|
122
|
+
tmp = _this__u8e3s4.u17('^' + nextTag.x17_1, 'HEAD');
|
|
123
123
|
} else if (!(earlierTag == null) ? !(nextTag == null) : false) {
|
|
124
|
-
tmp = _this__u8e3s4.
|
|
124
|
+
tmp = _this__u8e3s4.u17('^' + nextTag.x17_1, earlierTag.x17_1);
|
|
125
125
|
} else if (!(earlierTag == null)) {
|
|
126
|
-
tmp = _this__u8e3s4.
|
|
126
|
+
tmp = _this__u8e3s4.v17(earlierTag.x17_1);
|
|
127
127
|
} else {
|
|
128
128
|
tmp = alwaysLeftParent(log);
|
|
129
129
|
}
|
|
130
130
|
var tmp$ret$0 = to(earlierTag, tmp);
|
|
131
|
-
destination.
|
|
131
|
+
destination.o(tmp$ret$0);
|
|
132
132
|
}
|
|
133
133
|
// Inline function 'kotlin.collections.filterTo' call
|
|
134
134
|
var destination_0 = ArrayList_init_$Create$();
|
|
135
|
-
var tmp0_iterator_0 = destination.
|
|
136
|
-
while (tmp0_iterator_0.
|
|
137
|
-
var element = tmp0_iterator_0.
|
|
135
|
+
var tmp0_iterator_0 = destination.r();
|
|
136
|
+
while (tmp0_iterator_0.s()) {
|
|
137
|
+
var element = tmp0_iterator_0.u();
|
|
138
138
|
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
139
139
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
140
|
-
if (!element.
|
|
141
|
-
destination_0.
|
|
140
|
+
if (!element.z5_1.y()) {
|
|
141
|
+
destination_0.o(element);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
return destination_0;
|
|
@@ -149,30 +149,30 @@
|
|
|
149
149
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
150
150
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
151
151
|
var index = 0;
|
|
152
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
153
|
-
while (tmp0_iterator.
|
|
154
|
-
var item = tmp0_iterator.
|
|
152
|
+
var tmp0_iterator = _this__u8e3s4.r();
|
|
153
|
+
while (tmp0_iterator.s()) {
|
|
154
|
+
var item = tmp0_iterator.u();
|
|
155
155
|
// Inline function 'com.zegreatrob.tools.digger.core.tagPairs.<anonymous>' call
|
|
156
156
|
var tmp1 = index;
|
|
157
157
|
index = tmp1 + 1 | 0;
|
|
158
158
|
var index_0 = checkIndexOverflow(tmp1);
|
|
159
159
|
var tmp$ret$0 = to(item, getOrNull(_this__u8e3s4, index_0 + 1 | 0));
|
|
160
|
-
destination.
|
|
160
|
+
destination.o(tmp$ret$0);
|
|
161
161
|
}
|
|
162
162
|
return plus(tmp, destination);
|
|
163
163
|
}
|
|
164
164
|
function alwaysLeftParent(_this__u8e3s4) {
|
|
165
165
|
// Inline function 'kotlin.collections.fold' call
|
|
166
166
|
var accumulator = emptyList();
|
|
167
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
168
|
-
while (tmp0_iterator.
|
|
169
|
-
var element = tmp0_iterator.
|
|
167
|
+
var tmp0_iterator = _this__u8e3s4.r();
|
|
168
|
+
while (tmp0_iterator.s()) {
|
|
169
|
+
var element = tmp0_iterator.u();
|
|
170
170
|
// Inline function 'com.zegreatrob.tools.digger.core.alwaysLeftParent.<anonymous>' call
|
|
171
171
|
var acc = accumulator;
|
|
172
172
|
var tmp;
|
|
173
|
-
if (acc.
|
|
173
|
+
if (acc.y()) {
|
|
174
174
|
tmp = plus_0(acc, element);
|
|
175
|
-
} else if (element.
|
|
175
|
+
} else if (element.i17_1 === firstOrNull(last(acc).m17_1)) {
|
|
176
176
|
tmp = plus_0(acc, element);
|
|
177
177
|
} else {
|
|
178
178
|
tmp = acc;
|
|
@@ -182,19 +182,19 @@
|
|
|
182
182
|
return accumulator;
|
|
183
183
|
}
|
|
184
184
|
function CommitInspectionResult(storyId, ease, authors, semver) {
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
185
|
+
this.z17_1 = storyId;
|
|
186
|
+
this.a18_1 = ease;
|
|
187
|
+
this.b18_1 = authors;
|
|
188
|
+
this.c18_1 = semver;
|
|
189
189
|
}
|
|
190
190
|
protoOf(CommitInspectionResult).toString = function () {
|
|
191
|
-
return 'CommitInspectionResult(storyId=' + this.
|
|
191
|
+
return 'CommitInspectionResult(storyId=' + this.z17_1 + ', ease=' + this.a18_1 + ', authors=' + this.b18_1 + ', semver=' + this.c18_1 + ')';
|
|
192
192
|
};
|
|
193
193
|
protoOf(CommitInspectionResult).hashCode = function () {
|
|
194
|
-
var result = this.
|
|
195
|
-
result = imul(result, 31) + (this.
|
|
196
|
-
result = imul(result, 31) + hashCode(this.
|
|
197
|
-
result = imul(result, 31) + (this.
|
|
194
|
+
var result = this.z17_1 == null ? 0 : getStringHashCode(this.z17_1);
|
|
195
|
+
result = imul(result, 31) + (this.a18_1 == null ? 0 : this.a18_1) | 0;
|
|
196
|
+
result = imul(result, 31) + hashCode(this.b18_1) | 0;
|
|
197
|
+
result = imul(result, 31) + (this.c18_1 == null ? 0 : this.c18_1.hashCode()) | 0;
|
|
198
198
|
return result;
|
|
199
199
|
};
|
|
200
200
|
protoOf(CommitInspectionResult).equals = function (other) {
|
|
@@ -203,13 +203,13 @@
|
|
|
203
203
|
if (!(other instanceof CommitInspectionResult))
|
|
204
204
|
return false;
|
|
205
205
|
var tmp0_other_with_cast = other instanceof CommitInspectionResult ? other : THROW_CCE();
|
|
206
|
-
if (!(this.
|
|
206
|
+
if (!(this.z17_1 == tmp0_other_with_cast.z17_1))
|
|
207
207
|
return false;
|
|
208
|
-
if (!(this.
|
|
208
|
+
if (!(this.a18_1 == tmp0_other_with_cast.a18_1))
|
|
209
209
|
return false;
|
|
210
|
-
if (!equals(this.
|
|
210
|
+
if (!equals(this.b18_1, tmp0_other_with_cast.b18_1))
|
|
211
211
|
return false;
|
|
212
|
-
if (!equals(this.
|
|
212
|
+
if (!equals(this.c18_1, tmp0_other_with_cast.c18_1))
|
|
213
213
|
return false;
|
|
214
214
|
return true;
|
|
215
215
|
};
|
|
@@ -217,39 +217,39 @@
|
|
|
217
217
|
// Inline function 'kotlin.collections.map' call
|
|
218
218
|
// Inline function 'kotlin.collections.mapTo' call
|
|
219
219
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(commitRefs, 10));
|
|
220
|
-
var tmp0_iterator = commitRefs.
|
|
221
|
-
while (tmp0_iterator.
|
|
222
|
-
var item = tmp0_iterator.
|
|
220
|
+
var tmp0_iterator = commitRefs.r();
|
|
221
|
+
while (tmp0_iterator.s()) {
|
|
222
|
+
var item = tmp0_iterator.u();
|
|
223
223
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
224
|
-
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.
|
|
225
|
-
destination.
|
|
224
|
+
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.j18(item.n17_1));
|
|
225
|
+
destination.o(tmp$ret$0);
|
|
226
226
|
}
|
|
227
227
|
var messageDigResults = destination;
|
|
228
228
|
var lastCommit = firstOrNull(commitRefs);
|
|
229
229
|
var firstCommit = lastOrNull(commitRefs);
|
|
230
|
-
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.
|
|
230
|
+
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.i17_1;
|
|
231
231
|
var tmp7_lastCommit = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
232
|
-
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.
|
|
232
|
+
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.i17_1;
|
|
233
233
|
var tmp8_firstCommit = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
234
234
|
var tmp9_authors = allAuthors(messageDigResults);
|
|
235
|
-
var tmp10_dateTime = lastCommit == null ? null : lastCommit.
|
|
236
|
-
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.
|
|
235
|
+
var tmp10_dateTime = lastCommit == null ? null : lastCommit.l17_1;
|
|
236
|
+
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.l17_1;
|
|
237
237
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
238
238
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
239
239
|
var destination_0 = ArrayList_init_$Create$();
|
|
240
240
|
// Inline function 'kotlin.collections.forEach' call
|
|
241
|
-
var tmp0_iterator_0 = messageDigResults.
|
|
242
|
-
while (tmp0_iterator_0.
|
|
243
|
-
var element = tmp0_iterator_0.
|
|
241
|
+
var tmp0_iterator_0 = messageDigResults.r();
|
|
242
|
+
while (tmp0_iterator_0.s()) {
|
|
243
|
+
var element = tmp0_iterator_0.u();
|
|
244
244
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
245
245
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
246
|
-
var tmp0_safe_receiver = element.
|
|
246
|
+
var tmp0_safe_receiver = element.a18_1;
|
|
247
247
|
if (tmp0_safe_receiver == null)
|
|
248
248
|
null;
|
|
249
249
|
else {
|
|
250
250
|
// Inline function 'kotlin.let' call
|
|
251
251
|
// Inline function 'kotlin.contracts.contract' call
|
|
252
|
-
destination_0.
|
|
252
|
+
destination_0.o(tmp0_safe_receiver);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
var tmp12_ease = maxOrNull(destination_0);
|
|
@@ -258,50 +258,50 @@
|
|
|
258
258
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
259
259
|
var destination_1 = ArrayList_init_$Create$();
|
|
260
260
|
// Inline function 'kotlin.collections.forEach' call
|
|
261
|
-
var tmp0_iterator_1 = messageDigResults.
|
|
262
|
-
while (tmp0_iterator_1.
|
|
263
|
-
var element_0 = tmp0_iterator_1.
|
|
261
|
+
var tmp0_iterator_1 = messageDigResults.r();
|
|
262
|
+
while (tmp0_iterator_1.s()) {
|
|
263
|
+
var element_0 = tmp0_iterator_1.u();
|
|
264
264
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
265
265
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
266
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
266
|
+
var tmp0_safe_receiver_0 = element_0.c18_1;
|
|
267
267
|
if (tmp0_safe_receiver_0 == null)
|
|
268
268
|
null;
|
|
269
269
|
else {
|
|
270
270
|
// Inline function 'kotlin.let' call
|
|
271
271
|
// Inline function 'kotlin.contracts.contract' call
|
|
272
|
-
destination_1.
|
|
272
|
+
destination_1.o(tmp0_safe_receiver_0);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
var tmp6_safe_receiver = highestPrioritySemver(destination_1);
|
|
276
276
|
var tmp14_semver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.toString();
|
|
277
277
|
// Inline function 'kotlin.collections.count' call
|
|
278
|
-
var tmp15_commitCount = commitRefs.
|
|
278
|
+
var tmp15_commitCount = commitRefs.l();
|
|
279
279
|
return new Contribution(tmp7_lastCommit, tmp8_firstCommit, tmp9_authors, tmp15_commitCount, tmp10_dateTime, tmp11_firstCommitDateTime, tmp12_ease, tmp13_storyId, tmp14_semver, null, null, null);
|
|
280
280
|
}
|
|
281
281
|
function commitInspectionResult(_this__u8e3s4, digResult) {
|
|
282
|
-
return new CommitInspectionResult(digResult.
|
|
282
|
+
return new CommitInspectionResult(digResult.k18_1, digResult.l18_1, plus(listOf_0([_this__u8e3s4.k17_1, _this__u8e3s4.j17_1]), digResult.m18_1), digResult.n18_1);
|
|
283
283
|
}
|
|
284
284
|
function allAuthors(messageDigResults) {
|
|
285
285
|
// Inline function 'kotlin.collections.map' call
|
|
286
286
|
// Inline function 'kotlin.collections.flatMap' call
|
|
287
287
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
288
288
|
var destination = ArrayList_init_$Create$();
|
|
289
|
-
var tmp0_iterator = messageDigResults.
|
|
290
|
-
while (tmp0_iterator.
|
|
291
|
-
var element = tmp0_iterator.
|
|
292
|
-
var list = element.
|
|
289
|
+
var tmp0_iterator = messageDigResults.r();
|
|
290
|
+
while (tmp0_iterator.s()) {
|
|
291
|
+
var element = tmp0_iterator.u();
|
|
292
|
+
var list = element.b18_1;
|
|
293
293
|
addAll(destination, list);
|
|
294
294
|
}
|
|
295
295
|
// Inline function 'kotlin.collections.mapTo' call
|
|
296
296
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
297
|
-
var tmp0_iterator_0 = destination.
|
|
298
|
-
while (tmp0_iterator_0.
|
|
299
|
-
var item = tmp0_iterator_0.
|
|
297
|
+
var tmp0_iterator_0 = destination.r();
|
|
298
|
+
while (tmp0_iterator_0.s()) {
|
|
299
|
+
var item = tmp0_iterator_0.u();
|
|
300
300
|
// Inline function 'com.zegreatrob.tools.digger.core.allAuthors.<anonymous>' call
|
|
301
301
|
// Inline function 'kotlin.text.lowercase' call
|
|
302
302
|
// Inline function 'kotlin.js.asDynamic' call
|
|
303
303
|
var tmp$ret$5 = item.toLowerCase();
|
|
304
|
-
destination_0.
|
|
304
|
+
destination_0.o(tmp$ret$5);
|
|
305
305
|
}
|
|
306
306
|
return toList(sorted(toSet(destination_0)));
|
|
307
307
|
}
|
|
@@ -311,24 +311,24 @@
|
|
|
311
311
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
312
312
|
var destination = ArrayList_init_$Create$();
|
|
313
313
|
// Inline function 'kotlin.collections.forEach' call
|
|
314
|
-
var tmp0_iterator = messageDigResults.
|
|
315
|
-
while (tmp0_iterator.
|
|
316
|
-
var element = tmp0_iterator.
|
|
314
|
+
var tmp0_iterator = messageDigResults.r();
|
|
315
|
+
while (tmp0_iterator.s()) {
|
|
316
|
+
var element = tmp0_iterator.u();
|
|
317
317
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
318
|
-
var tmp0_safe_receiver = element.
|
|
318
|
+
var tmp0_safe_receiver = element.z17_1;
|
|
319
319
|
if (tmp0_safe_receiver == null)
|
|
320
320
|
null;
|
|
321
321
|
else {
|
|
322
322
|
// Inline function 'kotlin.let' call
|
|
323
323
|
// Inline function 'kotlin.contracts.contract' call
|
|
324
|
-
destination.
|
|
324
|
+
destination.o(tmp0_safe_receiver);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
// Inline function 'kotlin.contracts.contract' call
|
|
328
328
|
// Inline function 'com.zegreatrob.tools.digger.core.mergedStoryIds.<anonymous>' call
|
|
329
329
|
var tmp;
|
|
330
330
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
331
|
-
if (!destination.
|
|
331
|
+
if (!destination.y()) {
|
|
332
332
|
tmp = joinToString(sorted(toSet(destination)), ', ');
|
|
333
333
|
} else {
|
|
334
334
|
tmp = null;
|
|
@@ -338,23 +338,23 @@
|
|
|
338
338
|
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
339
339
|
var tmp;
|
|
340
340
|
if (previousTag == null) {
|
|
341
|
-
tmp = _this__u8e3s4.
|
|
341
|
+
tmp = _this__u8e3s4.t17();
|
|
342
342
|
} else {
|
|
343
|
-
tmp = _this__u8e3s4.
|
|
343
|
+
tmp = _this__u8e3s4.u17('^' + previousTag.w17_1, 'HEAD');
|
|
344
344
|
}
|
|
345
345
|
return tmp;
|
|
346
346
|
}
|
|
347
347
|
function tagRefs($this) {
|
|
348
348
|
// Inline function 'kotlin.collections.filter' call
|
|
349
349
|
// Inline function 'kotlin.collections.filterTo' call
|
|
350
|
-
var this_0 = $this.
|
|
350
|
+
var this_0 = $this.p18_1.s17();
|
|
351
351
|
var destination = ArrayList_init_$Create$();
|
|
352
|
-
var tmp0_iterator = this_0.
|
|
353
|
-
while (tmp0_iterator.
|
|
354
|
-
var element = tmp0_iterator.
|
|
352
|
+
var tmp0_iterator = this_0.r();
|
|
353
|
+
while (tmp0_iterator.s()) {
|
|
354
|
+
var element = tmp0_iterator.u();
|
|
355
355
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.tagRefs.<anonymous>' call
|
|
356
|
-
if ($this.
|
|
357
|
-
destination.
|
|
356
|
+
if ($this.r18_1.j8(element.w17_1)) {
|
|
357
|
+
destination.o(element);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
return destination;
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentRelevantTags.<anonymous>' call
|
|
366
366
|
var latestTag = getOrNull(lastTwoTags, 0);
|
|
367
367
|
var tmp;
|
|
368
|
-
if ((latestTag == null ? null : latestTag.
|
|
368
|
+
if ((latestTag == null ? null : latestTag.x17_1) === headCommitId) {
|
|
369
369
|
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
370
370
|
} else {
|
|
371
371
|
tmp = to(null, latestTag);
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
}
|
|
375
375
|
function Defaults() {
|
|
376
376
|
Defaults_instance = this;
|
|
377
|
-
this.
|
|
377
|
+
this.s18_1 = Regex_init_$Create$('.*');
|
|
378
378
|
}
|
|
379
379
|
var Defaults_instance;
|
|
380
380
|
function Defaults_getInstance() {
|
|
@@ -383,65 +383,65 @@
|
|
|
383
383
|
return Defaults_instance;
|
|
384
384
|
}
|
|
385
385
|
function DiggerCore(label, gitWrapper, messageDigger, tagRegex) {
|
|
386
|
-
tagRegex = tagRegex === VOID ? Defaults_getInstance().
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
386
|
+
tagRegex = tagRegex === VOID ? Defaults_getInstance().s18_1 : tagRegex;
|
|
387
|
+
this.o18_1 = label;
|
|
388
|
+
this.p18_1 = gitWrapper;
|
|
389
|
+
this.q18_1 = messageDigger;
|
|
390
|
+
this.r18_1 = tagRegex;
|
|
391
391
|
}
|
|
392
|
-
protoOf(DiggerCore).
|
|
392
|
+
protoOf(DiggerCore).t18 = function () {
|
|
393
393
|
// Inline function 'kotlin.with' call
|
|
394
394
|
// Inline function 'kotlin.contracts.contract' call
|
|
395
395
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentContributionData.<anonymous>' call
|
|
396
|
-
var $this$with = this.
|
|
397
|
-
var tmp0_container = currentRelevantTags(this, $this$with.
|
|
398
|
-
var currentTag = tmp0_container.
|
|
399
|
-
var previousTag = tmp0_container.
|
|
400
|
-
var tmp = contribution(this.
|
|
401
|
-
var tmp_0 = currentTag == null ? null : currentTag.
|
|
402
|
-
return tmp.
|
|
396
|
+
var $this$with = this.p18_1;
|
|
397
|
+
var tmp0_container = currentRelevantTags(this, $this$with.r17(), take(tagRefs(this), 2));
|
|
398
|
+
var currentTag = tmp0_container.a6();
|
|
399
|
+
var previousTag = tmp0_container.b6();
|
|
400
|
+
var tmp = contribution(this.q18_1, currentContributionCommits($this$with, previousTag));
|
|
401
|
+
var tmp_0 = currentTag == null ? null : currentTag.w17_1;
|
|
402
|
+
return tmp.h17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.o18_1, tmp_0, currentTag == null ? null : currentTag.y17_1);
|
|
403
403
|
};
|
|
404
|
-
protoOf(DiggerCore).
|
|
404
|
+
protoOf(DiggerCore).u18 = function () {
|
|
405
405
|
// Inline function 'kotlin.collections.map' call
|
|
406
406
|
// Inline function 'kotlin.collections.map' call
|
|
407
|
-
var this_0 = allContributionCommits(this.
|
|
407
|
+
var this_0 = allContributionCommits(this.p18_1, tagRefs(this), this.p18_1.t17());
|
|
408
408
|
// Inline function 'kotlin.collections.mapTo' call
|
|
409
409
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
410
|
-
var tmp0_iterator = this_0.
|
|
411
|
-
while (tmp0_iterator.
|
|
412
|
-
var item = tmp0_iterator.
|
|
410
|
+
var tmp0_iterator = this_0.r();
|
|
411
|
+
while (tmp0_iterator.s()) {
|
|
412
|
+
var item = tmp0_iterator.u();
|
|
413
413
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
414
|
-
var tmp$ret$0 = to(item.
|
|
415
|
-
destination.
|
|
414
|
+
var tmp$ret$0 = to(item.y5_1, contribution(this.q18_1, toList(item.z5_1)));
|
|
415
|
+
destination.o(tmp$ret$0);
|
|
416
416
|
}
|
|
417
417
|
// Inline function 'kotlin.collections.mapTo' call
|
|
418
418
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
419
|
-
var tmp0_iterator_0 = destination.
|
|
420
|
-
while (tmp0_iterator_0.
|
|
421
|
-
var item_0 = tmp0_iterator_0.
|
|
419
|
+
var tmp0_iterator_0 = destination.r();
|
|
420
|
+
while (tmp0_iterator_0.s()) {
|
|
421
|
+
var item_0 = tmp0_iterator_0.u();
|
|
422
422
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
423
|
-
var tag = item_0.
|
|
424
|
-
var contribution_0 = item_0.
|
|
425
|
-
var tmp = tag == null ? null : tag.
|
|
426
|
-
var tmp$ret$3 = contribution_0.
|
|
427
|
-
destination_0.
|
|
423
|
+
var tag = item_0.a6();
|
|
424
|
+
var contribution_0 = item_0.b6();
|
|
425
|
+
var tmp = tag == null ? null : tag.w17_1;
|
|
426
|
+
var tmp$ret$3 = contribution_0.h17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.o18_1, tmp, tag == null ? null : tag.y17_1);
|
|
427
|
+
destination_0.o(tmp$ret$3);
|
|
428
428
|
}
|
|
429
429
|
return destination_0;
|
|
430
430
|
};
|
|
431
431
|
function MessageDigResult(storyId, ease, coauthors, semver) {
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
432
|
+
this.k18_1 = storyId;
|
|
433
|
+
this.l18_1 = ease;
|
|
434
|
+
this.m18_1 = coauthors;
|
|
435
|
+
this.n18_1 = semver;
|
|
436
436
|
}
|
|
437
437
|
protoOf(MessageDigResult).toString = function () {
|
|
438
|
-
return 'MessageDigResult(storyId=' + this.
|
|
438
|
+
return 'MessageDigResult(storyId=' + this.k18_1 + ', ease=' + this.l18_1 + ', coauthors=' + this.m18_1 + ', semver=' + this.n18_1 + ')';
|
|
439
439
|
};
|
|
440
440
|
protoOf(MessageDigResult).hashCode = function () {
|
|
441
|
-
var result = this.
|
|
442
|
-
result = imul(result, 31) + (this.
|
|
443
|
-
result = imul(result, 31) + hashCode(this.
|
|
444
|
-
result = imul(result, 31) + (this.
|
|
441
|
+
var result = this.k18_1 == null ? 0 : getStringHashCode(this.k18_1);
|
|
442
|
+
result = imul(result, 31) + (this.l18_1 == null ? 0 : this.l18_1) | 0;
|
|
443
|
+
result = imul(result, 31) + hashCode(this.m18_1) | 0;
|
|
444
|
+
result = imul(result, 31) + (this.n18_1 == null ? 0 : this.n18_1.hashCode()) | 0;
|
|
445
445
|
return result;
|
|
446
446
|
};
|
|
447
447
|
protoOf(MessageDigResult).equals = function (other) {
|
|
@@ -450,24 +450,24 @@
|
|
|
450
450
|
if (!(other instanceof MessageDigResult))
|
|
451
451
|
return false;
|
|
452
452
|
var tmp0_other_with_cast = other instanceof MessageDigResult ? other : THROW_CCE();
|
|
453
|
-
if (!(this.
|
|
453
|
+
if (!(this.k18_1 == tmp0_other_with_cast.k18_1))
|
|
454
454
|
return false;
|
|
455
|
-
if (!(this.
|
|
455
|
+
if (!(this.l18_1 == tmp0_other_with_cast.l18_1))
|
|
456
456
|
return false;
|
|
457
|
-
if (!equals(this.
|
|
457
|
+
if (!equals(this.m18_1, tmp0_other_with_cast.m18_1))
|
|
458
458
|
return false;
|
|
459
|
-
if (!equals(this.
|
|
459
|
+
if (!equals(this.n18_1, tmp0_other_with_cast.n18_1))
|
|
460
460
|
return false;
|
|
461
461
|
return true;
|
|
462
462
|
};
|
|
463
463
|
function Defaults_0() {
|
|
464
464
|
Defaults_instance_0 = this;
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
465
|
+
this.v18_1 = Regex_init_$Create$_0('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
466
|
+
this.w18_1 = Regex_init_$Create$_0('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
467
|
+
this.x18_1 = Regex_init_$Create$_0('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
468
|
+
this.y18_1 = Regex_init_$Create$_0('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
469
|
+
this.z18_1 = Regex_init_$Create$('\\[(?<storyId>.*?)\\]');
|
|
470
|
+
this.a19_1 = Regex_init_$Create$('-(?<ease>[1-5])-');
|
|
471
471
|
}
|
|
472
472
|
var Defaults_instance_0;
|
|
473
473
|
function Defaults_getInstance_0() {
|
|
@@ -476,56 +476,56 @@
|
|
|
476
476
|
return Defaults_instance_0;
|
|
477
477
|
}
|
|
478
478
|
function MessageDigger(majorRegex, minorRegex, patchRegex, noneRegex, storyIdRegex, easeRegex) {
|
|
479
|
-
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().
|
|
480
|
-
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().
|
|
481
|
-
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().
|
|
482
|
-
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().
|
|
483
|
-
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().
|
|
484
|
-
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().
|
|
485
|
-
if (!contains(storyIdRegex.
|
|
486
|
-
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.
|
|
479
|
+
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().v18_1 : majorRegex;
|
|
480
|
+
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().w18_1 : minorRegex;
|
|
481
|
+
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().x18_1 : patchRegex;
|
|
482
|
+
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().y18_1 : noneRegex;
|
|
483
|
+
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().z18_1 : storyIdRegex;
|
|
484
|
+
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().a19_1 : easeRegex;
|
|
485
|
+
if (!contains(storyIdRegex.d8_1, '?<storyId>')) {
|
|
486
|
+
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.d8_1);
|
|
487
487
|
}
|
|
488
|
-
if (!contains(easeRegex.
|
|
489
|
-
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.
|
|
488
|
+
if (!contains(easeRegex.d8_1, '?<ease>')) {
|
|
489
|
+
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.d8_1);
|
|
490
490
|
}
|
|
491
|
-
this.
|
|
491
|
+
this.d18_1 = mapOf([to('major', majorRegex), to('minor', minorRegex), to('patch', patchRegex), to('none', noneRegex)]);
|
|
492
492
|
var tmp = this;
|
|
493
493
|
// Inline function 'kotlin.collections.map' call
|
|
494
|
-
var this_0 = this.
|
|
494
|
+
var this_0 = this.d18_1;
|
|
495
495
|
// Inline function 'kotlin.collections.mapTo' call
|
|
496
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
496
|
+
var destination = ArrayList_init_$Create$_0(this_0.l());
|
|
497
497
|
// Inline function 'kotlin.collections.iterator' call
|
|
498
|
-
var tmp0_iterator = this_0.
|
|
499
|
-
while (tmp0_iterator.
|
|
500
|
-
var item = tmp0_iterator.
|
|
498
|
+
var tmp0_iterator = this_0.l2().r();
|
|
499
|
+
while (tmp0_iterator.s()) {
|
|
500
|
+
var item = tmp0_iterator.u();
|
|
501
501
|
// Inline function 'com.zegreatrob.tools.digger.core.MessageDigger.allSemverRegex.<anonymous>' call
|
|
502
502
|
// Inline function 'kotlin.collections.component1' call
|
|
503
|
-
var group = item.
|
|
503
|
+
var group = item.m2();
|
|
504
504
|
// Inline function 'kotlin.collections.component2' call
|
|
505
|
-
var regex = item.
|
|
505
|
+
var regex = item.n2();
|
|
506
506
|
var tmp$ret$3 = '(?<' + group + '>' + cleaned(regex) + ')?';
|
|
507
|
-
destination.
|
|
507
|
+
destination.o(tmp$ret$3);
|
|
508
508
|
}
|
|
509
|
-
tmp.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
}
|
|
515
|
-
protoOf(MessageDigger).
|
|
516
|
-
return messageDigResult(this.
|
|
509
|
+
tmp.e18_1 = joinToString(destination, '');
|
|
510
|
+
this.f18_1 = '(' + cleaned(storyIdRegex) + ')?';
|
|
511
|
+
this.g18_1 = '(' + cleaned(easeRegex) + ')?';
|
|
512
|
+
this.h18_1 = '(Co-authored-by: .* <(?<coAuthors>.*)>)?';
|
|
513
|
+
this.i18_1 = new Regex(this.e18_1 + this.f18_1 + this.g18_1 + this.h18_1, setOf([RegexOption_IGNORE_CASE_getInstance(), RegexOption_MULTILINE_getInstance()]));
|
|
514
|
+
}
|
|
515
|
+
protoOf(MessageDigger).j18 = function (input) {
|
|
516
|
+
return messageDigResult(this.i18_1.m8(input));
|
|
517
517
|
};
|
|
518
518
|
function cleaned(_this__u8e3s4) {
|
|
519
|
-
var first = firstOrNull_0(_this__u8e3s4.
|
|
520
|
-
var last = lastIndexOf(_this__u8e3s4.
|
|
519
|
+
var first = firstOrNull_0(_this__u8e3s4.d8_1);
|
|
520
|
+
var last = lastIndexOf(_this__u8e3s4.d8_1, '/');
|
|
521
521
|
var tmp;
|
|
522
522
|
var tmp_0 = first;
|
|
523
523
|
if (equals(tmp_0 == null ? null : new Char(tmp_0), new Char(_Char___init__impl__6a9atx(47)))) {
|
|
524
524
|
// Inline function 'kotlin.text.substring' call
|
|
525
525
|
// Inline function 'kotlin.js.asDynamic' call
|
|
526
|
-
tmp = _this__u8e3s4.
|
|
526
|
+
tmp = _this__u8e3s4.d8_1.substring(1, last);
|
|
527
527
|
} else {
|
|
528
|
-
tmp = _this__u8e3s4.
|
|
528
|
+
tmp = _this__u8e3s4.d8_1;
|
|
529
529
|
}
|
|
530
530
|
return tmp;
|
|
531
531
|
}
|
|
@@ -535,11 +535,11 @@
|
|
|
535
535
|
var tmp$ret$1;
|
|
536
536
|
$l$block: {
|
|
537
537
|
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
538
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
539
|
-
while (tmp0_iterator.
|
|
540
|
-
var element = tmp0_iterator.
|
|
538
|
+
var tmp0_iterator = _this__u8e3s4.r();
|
|
539
|
+
while (tmp0_iterator.s()) {
|
|
540
|
+
var element = tmp0_iterator.u();
|
|
541
541
|
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
542
|
-
var result = get(element.
|
|
542
|
+
var result = get(element.d9(), 'storyId');
|
|
543
543
|
if (!(result == null)) {
|
|
544
544
|
tmp$ret$1 = result;
|
|
545
545
|
break $l$block;
|
|
@@ -548,15 +548,15 @@
|
|
|
548
548
|
tmp$ret$1 = null;
|
|
549
549
|
}
|
|
550
550
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
551
|
-
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
551
|
+
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c9_1;
|
|
552
552
|
var tmp$ret$3;
|
|
553
553
|
$l$block_0: {
|
|
554
554
|
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
555
|
-
var tmp0_iterator_0 = _this__u8e3s4.
|
|
556
|
-
while (tmp0_iterator_0.
|
|
557
|
-
var element_0 = tmp0_iterator_0.
|
|
555
|
+
var tmp0_iterator_0 = _this__u8e3s4.r();
|
|
556
|
+
while (tmp0_iterator_0.s()) {
|
|
557
|
+
var element_0 = tmp0_iterator_0.u();
|
|
558
558
|
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
559
|
-
var result_0 = get(element_0.
|
|
559
|
+
var result_0 = get(element_0.d9(), 'ease');
|
|
560
560
|
if (!(result_0 == null)) {
|
|
561
561
|
tmp$ret$3 = result_0;
|
|
562
562
|
break $l$block_0;
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
tmp$ret$3 = null;
|
|
566
566
|
}
|
|
567
567
|
var tmp1_safe_receiver = tmp$ret$3;
|
|
568
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
568
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c9_1;
|
|
569
569
|
var tmp6_ease = tmp2_safe_receiver == null ? null : toIntOrNull(tmp2_safe_receiver);
|
|
570
570
|
return new MessageDigResult(tmp5_storyId, tmp6_ease, tmp3_coauthors, tmp4_semver);
|
|
571
571
|
}
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
try {
|
|
580
580
|
// Inline function 'kotlin.Companion.success' call
|
|
581
581
|
// Inline function 'com.zegreatrob.tools.digger.core.groupMatches.<anonymous>' call
|
|
582
|
-
var value = get(_this__u8e3s4.
|
|
582
|
+
var value = get(_this__u8e3s4.d9(), groupName);
|
|
583
583
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
584
584
|
} catch ($p) {
|
|
585
585
|
var tmp_0;
|
|
@@ -606,8 +606,8 @@
|
|
|
606
606
|
return maxOrNull(_this__u8e3s4);
|
|
607
607
|
}
|
|
608
608
|
function messageDigResult$lambda(it) {
|
|
609
|
-
var tmp0_safe_receiver = get(it.
|
|
610
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
609
|
+
var tmp0_safe_receiver = get(it.d9(), 'coAuthors');
|
|
610
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c9_1;
|
|
611
611
|
}
|
|
612
612
|
function messageDigResult$lambda_0(it) {
|
|
613
613
|
return getSemver(it);
|