git-semver-tagger 2.3.1 → 2.4.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/clikt-clikt-mordant-markdown.js +29 -0
- package/kotlin/clikt-clikt-mordant-markdown.js.map +1 -0
- package/kotlin/clikt-clikt-mordant.js +99 -99
- package/kotlin/clikt-clikt.js +1447 -1447
- package/kotlin/colormath-root-colormath.js +442 -442
- package/kotlin/command-line-tools-tagger-cli.js +399 -398
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +942 -782
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1823 -1823
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1594 -1594
- package/kotlin/markdown.js +6717 -0
- package/kotlin/markdown.js.map +1 -0
- package/kotlin/mordant-mordant-markdown.js +660 -0
- package/kotlin/mordant-mordant-markdown.js.map +1 -0
- package/kotlin/mordant-mordant.js +2324 -1364
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +5 -5
- package/kotlin/tools-digger-core.js +10 -10
- package/kotlin/tools-git-adapter.js +118 -118
- package/kotlin/tools-tagger-core.js +152 -152
- package/kotlin/tools-tagger-json.js +138 -138
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function (_, process, fs, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var until = kotlin_kotlin.$_$.
|
|
5
|
-
var slice = kotlin_kotlin.$_$.
|
|
6
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
7
|
-
var to = kotlin_kotlin.$_$.
|
|
8
|
-
var json = kotlin_kotlin.$_$.
|
|
4
|
+
var until = kotlin_kotlin.$_$.eb;
|
|
5
|
+
var slice = kotlin_kotlin.$_$.j7;
|
|
6
|
+
var copyToArray = kotlin_kotlin.$_$.n5;
|
|
7
|
+
var to = kotlin_kotlin.$_$.xf;
|
|
8
|
+
var json = kotlin_kotlin.$_$.ia;
|
|
9
9
|
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
10
10
|
//endregion
|
|
11
11
|
//region block: pre-declaration
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.w;
|
|
5
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
6
|
-
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
5
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
6
|
+
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.n1;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.pa;
|
|
8
|
+
var initMetadataForObject = kotlin_kotlin.$_$.w9;
|
|
9
9
|
//endregion
|
|
10
10
|
//region block: pre-declaration
|
|
11
11
|
initMetadataForObject(Defaults, 'Defaults');
|
|
12
12
|
//endregion
|
|
13
13
|
function Defaults() {
|
|
14
14
|
Defaults_instance = this;
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
15
|
+
this.vk_1 = Regex_init_$Create$('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
16
|
+
this.wk_1 = Regex_init_$Create$('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
17
|
+
this.xk_1 = Regex_init_$Create$('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
18
|
+
this.yk_1 = Regex_init_$Create$('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
19
|
+
this.zk_1 = Regex_init_$Create$_0('\\[(?<storyId>.*?)\\]');
|
|
20
|
+
this.al_1 = Regex_init_$Create$_0('-(?<ease>[1-5])-');
|
|
21
21
|
}
|
|
22
22
|
var Defaults_instance;
|
|
23
23
|
function Defaults_getInstance() {
|
|
@@ -2,56 +2,56 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
8
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
9
|
-
var equals = kotlin_kotlin.$_$.
|
|
10
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
11
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
5
|
+
var toString = kotlin_kotlin.$_$.ra;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.pa;
|
|
7
|
+
var getStringHashCode = kotlin_kotlin.$_$.p9;
|
|
8
|
+
var hashCode = kotlin_kotlin.$_$.q9;
|
|
9
|
+
var equals = kotlin_kotlin.$_$.l9;
|
|
10
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r9;
|
|
11
|
+
var emptyMap = kotlin_kotlin.$_$.r5;
|
|
12
12
|
var VOID = kotlin_kotlin.$_$.c;
|
|
13
|
-
var plus = kotlin_kotlin.$_$.
|
|
14
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
15
|
-
var listOf = kotlin_kotlin.$_$.
|
|
16
|
-
var split = kotlin_kotlin.$_$.
|
|
17
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
18
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
19
|
-
var reversed = kotlin_kotlin.$_$.
|
|
13
|
+
var plus = kotlin_kotlin.$_$.y6;
|
|
14
|
+
var emptyList = kotlin_kotlin.$_$.q5;
|
|
15
|
+
var listOf = kotlin_kotlin.$_$.r6;
|
|
16
|
+
var split = kotlin_kotlin.$_$.hd;
|
|
17
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
18
|
+
var joinToString = kotlin_kotlin.$_$.d6;
|
|
19
|
+
var reversed = kotlin_kotlin.$_$.e7;
|
|
20
20
|
var Companion_getInstance = kotlin_kotlin.$_$.m;
|
|
21
|
-
var last = kotlin_kotlin.$_$.
|
|
21
|
+
var last = kotlin_kotlin.$_$.n6;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
23
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
24
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
25
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
26
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
27
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
28
|
-
var substring = kotlin_kotlin.$_$.
|
|
29
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
30
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
31
|
-
var trim = kotlin_kotlin.$_$.
|
|
32
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
33
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
34
|
-
var to = kotlin_kotlin.$_$.
|
|
35
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
36
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
37
|
-
var toInt = kotlin_kotlin.$_$.
|
|
23
|
+
var isBlank = kotlin_kotlin.$_$.mc;
|
|
24
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.z4;
|
|
25
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
26
|
+
var charSequenceLength = kotlin_kotlin.$_$.i9;
|
|
27
|
+
var startsWith = kotlin_kotlin.$_$.id;
|
|
28
|
+
var substring = kotlin_kotlin.$_$.nd;
|
|
29
|
+
var THROW_CCE = kotlin_kotlin.$_$.xe;
|
|
30
|
+
var isCharSequence = kotlin_kotlin.$_$.ba;
|
|
31
|
+
var trim = kotlin_kotlin.$_$.fe;
|
|
32
|
+
var listOf_0 = kotlin_kotlin.$_$.q6;
|
|
33
|
+
var plus_0 = kotlin_kotlin.$_$.b7;
|
|
34
|
+
var to = kotlin_kotlin.$_$.xf;
|
|
35
|
+
var mapOf = kotlin_kotlin.$_$.t6;
|
|
36
|
+
var firstOrNull = kotlin_kotlin.$_$.t5;
|
|
37
|
+
var toInt = kotlin_kotlin.$_$.ud;
|
|
38
38
|
var Companion_instance = kotlin_kotlin.$_$.q;
|
|
39
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
40
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
41
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
42
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
43
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
44
|
-
var Exception = kotlin_kotlin.$_$.
|
|
45
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
46
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
47
|
-
var contains = kotlin_kotlin.$_$.
|
|
48
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
49
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
50
|
-
var lines = kotlin_kotlin.$_$.
|
|
51
|
-
var first = kotlin_kotlin.$_$.
|
|
52
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
53
|
-
var json = kotlin_kotlin.$_$.
|
|
54
|
-
var toList = kotlin_kotlin.$_$.
|
|
39
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n2;
|
|
40
|
+
var createFailure = kotlin_kotlin.$_$.mf;
|
|
41
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.r2;
|
|
42
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.p2;
|
|
43
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.m9;
|
|
44
|
+
var Exception = kotlin_kotlin.$_$.qe;
|
|
45
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.t1;
|
|
46
|
+
var captureStack = kotlin_kotlin.$_$.d9;
|
|
47
|
+
var contains = kotlin_kotlin.$_$.cc;
|
|
48
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
49
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i2;
|
|
50
|
+
var lines = kotlin_kotlin.$_$.vc;
|
|
51
|
+
var first = kotlin_kotlin.$_$.u5;
|
|
52
|
+
var copyToArray = kotlin_kotlin.$_$.n5;
|
|
53
|
+
var json = kotlin_kotlin.$_$.ia;
|
|
54
|
+
var toList = kotlin_kotlin.$_$.r7;
|
|
55
55
|
//endregion
|
|
56
56
|
//region block: pre-declaration
|
|
57
57
|
initMetadataForClass(CommitRef, 'CommitRef');
|
|
@@ -61,23 +61,23 @@
|
|
|
61
61
|
initMetadataForClass(TagRef, 'TagRef');
|
|
62
62
|
//endregion
|
|
63
63
|
function CommitRef(id, authorEmail, committerEmail, dateTime, parents, fullMessage) {
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
64
|
+
this.bl_1 = id;
|
|
65
|
+
this.cl_1 = authorEmail;
|
|
66
|
+
this.dl_1 = committerEmail;
|
|
67
|
+
this.el_1 = dateTime;
|
|
68
|
+
this.fl_1 = parents;
|
|
69
|
+
this.gl_1 = fullMessage;
|
|
70
70
|
}
|
|
71
71
|
protoOf(CommitRef).toString = function () {
|
|
72
|
-
return 'CommitRef(id=' + this.
|
|
72
|
+
return 'CommitRef(id=' + this.bl_1 + ', authorEmail=' + this.cl_1 + ', committerEmail=' + this.dl_1 + ', dateTime=' + this.el_1.toString() + ', parents=' + toString(this.fl_1) + ', fullMessage=' + this.gl_1 + ')';
|
|
73
73
|
};
|
|
74
74
|
protoOf(CommitRef).hashCode = function () {
|
|
75
|
-
var result = getStringHashCode(this.
|
|
76
|
-
result = imul(result, 31) + getStringHashCode(this.bl_1) | 0;
|
|
75
|
+
var result = getStringHashCode(this.bl_1);
|
|
77
76
|
result = imul(result, 31) + getStringHashCode(this.cl_1) | 0;
|
|
78
|
-
result = imul(result, 31) + this.dl_1
|
|
79
|
-
result = imul(result, 31) +
|
|
80
|
-
result = imul(result, 31) +
|
|
77
|
+
result = imul(result, 31) + getStringHashCode(this.dl_1) | 0;
|
|
78
|
+
result = imul(result, 31) + this.el_1.hashCode() | 0;
|
|
79
|
+
result = imul(result, 31) + hashCode(this.fl_1) | 0;
|
|
80
|
+
result = imul(result, 31) + getStringHashCode(this.gl_1) | 0;
|
|
81
81
|
return result;
|
|
82
82
|
};
|
|
83
83
|
protoOf(CommitRef).equals = function (other) {
|
|
@@ -85,23 +85,23 @@
|
|
|
85
85
|
return true;
|
|
86
86
|
if (!(other instanceof CommitRef))
|
|
87
87
|
return false;
|
|
88
|
-
if (!(this.al_1 === other.al_1))
|
|
89
|
-
return false;
|
|
90
88
|
if (!(this.bl_1 === other.bl_1))
|
|
91
89
|
return false;
|
|
92
90
|
if (!(this.cl_1 === other.cl_1))
|
|
93
91
|
return false;
|
|
94
|
-
if (!this.dl_1
|
|
92
|
+
if (!(this.dl_1 === other.dl_1))
|
|
93
|
+
return false;
|
|
94
|
+
if (!this.el_1.equals(other.el_1))
|
|
95
95
|
return false;
|
|
96
|
-
if (!equals(this.
|
|
96
|
+
if (!equals(this.fl_1, other.fl_1))
|
|
97
97
|
return false;
|
|
98
|
-
if (!(this.
|
|
98
|
+
if (!(this.gl_1 === other.gl_1))
|
|
99
99
|
return false;
|
|
100
100
|
return true;
|
|
101
101
|
};
|
|
102
102
|
function runProcess($this, args, env) {
|
|
103
103
|
env = env === VOID ? emptyMap() : env;
|
|
104
|
-
return runProcess_0(args, $this.
|
|
104
|
+
return runProcess_0(args, $this.hl_1, plus(env, $this.il_1));
|
|
105
105
|
}
|
|
106
106
|
function inlineConfig($this, property, value) {
|
|
107
107
|
return !(value == null) ? listOf(['-c', property + '=' + value]) : emptyList();
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
var commaSplit = split(element, [',']);
|
|
119
119
|
var tmp;
|
|
120
120
|
if (commaSplit.d1() >= 3) {
|
|
121
|
-
tmp = new TagRef(joinToString(commaSplit.i2(0, commaSplit.d1() - 2 | 0), ''), reversed(commaSplit).c1(1), Companion_getInstance().
|
|
121
|
+
tmp = new TagRef(joinToString(commaSplit.i2(0, commaSplit.d1() - 2 | 0), ''), reversed(commaSplit).c1(1), Companion_getInstance().qh(last(commaSplit)));
|
|
122
122
|
} else {
|
|
123
123
|
tmp = null;
|
|
124
124
|
}
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
function parseLog($this, outputText) {
|
|
137
137
|
// Inline function 'kotlin.collections.filter' call
|
|
138
|
-
var tmp0 = split(outputText, [$this.
|
|
138
|
+
var tmp0 = split(outputText, [$this.jl_1 + '\n']);
|
|
139
139
|
// Inline function 'kotlin.collections.filterTo' call
|
|
140
140
|
var destination = ArrayList_init_$Create$();
|
|
141
141
|
var _iterator__ex2g4s = tmp0.r();
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
var tmp = elements.c1(0);
|
|
157
157
|
var tmp_0 = elements.c1(1);
|
|
158
158
|
var tmp_1 = elements.c1(2);
|
|
159
|
-
var tmp_2 = Companion_getInstance().
|
|
159
|
+
var tmp_2 = Companion_getInstance().qh(elements.c1(3));
|
|
160
160
|
// Inline function 'kotlin.collections.filter' call
|
|
161
161
|
var tmp0_0 = split(elements.c1(4), [' ']);
|
|
162
162
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -194,17 +194,17 @@
|
|
|
194
194
|
}
|
|
195
195
|
function GitAdapter(workingDirectory, env) {
|
|
196
196
|
env = env === VOID ? emptyMap() : env;
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
197
|
+
this.hl_1 = workingDirectory;
|
|
198
|
+
this.il_1 = env;
|
|
199
|
+
this.jl_1 = '--------!--------';
|
|
200
|
+
this.kl_1 = '%H%n%ae%n%ce%n%aI%n%P%n%B%n' + this.jl_1;
|
|
201
201
|
}
|
|
202
|
-
protoOf(GitAdapter).
|
|
202
|
+
protoOf(GitAdapter).ll = function () {
|
|
203
203
|
// Inline function 'kotlin.text.trim' call
|
|
204
204
|
var this_0 = runProcess(this, listOf(['git', '--no-pager', 'rev-parse', 'HEAD']));
|
|
205
205
|
return toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
206
206
|
};
|
|
207
|
-
protoOf(GitAdapter).
|
|
207
|
+
protoOf(GitAdapter).ml = function (name, ref, userName, userEmail) {
|
|
208
208
|
var tmp = plus_0(plus_0(plus_0(listOf_0('git'), inlineConfig(this, 'user.name', userName)), inlineConfig(this, 'user.email', userEmail)), listOf(['tag', '--annotate', '--message=' + name, name, ref]));
|
|
209
209
|
var tmp_0 = emptyMap();
|
|
210
210
|
var tmp_1;
|
|
@@ -222,10 +222,10 @@
|
|
|
222
222
|
}
|
|
223
223
|
runProcess(this, tmp, plus(tmp_2, tmp_3));
|
|
224
224
|
};
|
|
225
|
-
protoOf(GitAdapter).
|
|
225
|
+
protoOf(GitAdapter).nl = function () {
|
|
226
226
|
runProcess(this, listOf(['git', 'push', '--tags']));
|
|
227
227
|
};
|
|
228
|
-
protoOf(GitAdapter).
|
|
228
|
+
protoOf(GitAdapter).ol = function () {
|
|
229
229
|
// Inline function 'kotlin.text.trim' call
|
|
230
230
|
var this_0 = runProcess(this, listOf(['git', '--no-pager', 'tag', '--list']));
|
|
231
231
|
// Inline function 'kotlin.let' call
|
|
@@ -239,16 +239,16 @@
|
|
|
239
239
|
}
|
|
240
240
|
return tmp;
|
|
241
241
|
};
|
|
242
|
-
protoOf(GitAdapter).
|
|
242
|
+
protoOf(GitAdapter).pl = function (ref) {
|
|
243
243
|
// Inline function 'kotlin.let' call
|
|
244
244
|
var p0 = runProcess(this, listOf(['git', '--no-pager', 'tag', '--list', '--format=%(refname:strip=2),%(*objectname),%(creatordate:iso-strict)', '--points-at=' + ref]));
|
|
245
245
|
var tmp$ret$0 = parseTagRefs(this, p0);
|
|
246
246
|
return firstOrNull(tmp$ret$0);
|
|
247
247
|
};
|
|
248
|
-
protoOf(GitAdapter).
|
|
249
|
-
return parseLog(this, runProcess(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.
|
|
248
|
+
protoOf(GitAdapter).ql = function (begin, end) {
|
|
249
|
+
return parseLog(this, runProcess(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.kl_1, begin]), !(end == null) ? listOf_0(end) : emptyList())));
|
|
250
250
|
};
|
|
251
|
-
protoOf(GitAdapter).
|
|
251
|
+
protoOf(GitAdapter).rl = function () {
|
|
252
252
|
// Inline function 'kotlin.let' call
|
|
253
253
|
var output = runProcess(this, listOf(['git', 'status', '--porcelain=2', '--branch', '--ahead-behind']));
|
|
254
254
|
var lines = split(output, ['\n']);
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
var tmp_3 = head == null ? '' : head;
|
|
304
304
|
return new GitStatus(tmp_0, tmp_1, tmp_2, tmp_3, upstream == null ? '' : upstream);
|
|
305
305
|
};
|
|
306
|
-
protoOf(GitAdapter).
|
|
306
|
+
protoOf(GitAdapter).sl = function (abbrev) {
|
|
307
307
|
// Inline function 'kotlin.runCatching' call
|
|
308
308
|
var tmp;
|
|
309
309
|
try {
|
|
@@ -328,21 +328,21 @@
|
|
|
328
328
|
return _Result___get_isFailure__impl__jpiriv(this_1) ? null : _Result___get_value__impl__bjfvqg(this_1);
|
|
329
329
|
};
|
|
330
330
|
function GitStatus(isClean, ahead, behind, head, upstream) {
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
331
|
+
this.tl_1 = isClean;
|
|
332
|
+
this.ul_1 = ahead;
|
|
333
|
+
this.vl_1 = behind;
|
|
334
|
+
this.wl_1 = head;
|
|
335
|
+
this.xl_1 = upstream;
|
|
336
336
|
}
|
|
337
337
|
protoOf(GitStatus).toString = function () {
|
|
338
|
-
return 'GitStatus(isClean=' + this.
|
|
338
|
+
return 'GitStatus(isClean=' + this.tl_1 + ', ahead=' + this.ul_1 + ', behind=' + this.vl_1 + ', head=' + this.wl_1 + ', upstream=' + this.xl_1 + ')';
|
|
339
339
|
};
|
|
340
340
|
protoOf(GitStatus).hashCode = function () {
|
|
341
|
-
var result = getBooleanHashCode(this.
|
|
342
|
-
result = imul(result, 31) + this.tl_1 | 0;
|
|
341
|
+
var result = getBooleanHashCode(this.tl_1);
|
|
343
342
|
result = imul(result, 31) + this.ul_1 | 0;
|
|
344
|
-
result = imul(result, 31) +
|
|
343
|
+
result = imul(result, 31) + this.vl_1 | 0;
|
|
345
344
|
result = imul(result, 31) + getStringHashCode(this.wl_1) | 0;
|
|
345
|
+
result = imul(result, 31) + getStringHashCode(this.xl_1) | 0;
|
|
346
346
|
return result;
|
|
347
347
|
};
|
|
348
348
|
protoOf(GitStatus).equals = function (other) {
|
|
@@ -350,8 +350,6 @@
|
|
|
350
350
|
return true;
|
|
351
351
|
if (!(other instanceof GitStatus))
|
|
352
352
|
return false;
|
|
353
|
-
if (!(this.sl_1 === other.sl_1))
|
|
354
|
-
return false;
|
|
355
353
|
if (!(this.tl_1 === other.tl_1))
|
|
356
354
|
return false;
|
|
357
355
|
if (!(this.ul_1 === other.ul_1))
|
|
@@ -360,28 +358,30 @@
|
|
|
360
358
|
return false;
|
|
361
359
|
if (!(this.wl_1 === other.wl_1))
|
|
362
360
|
return false;
|
|
361
|
+
if (!(this.xl_1 === other.xl_1))
|
|
362
|
+
return false;
|
|
363
363
|
return true;
|
|
364
364
|
};
|
|
365
365
|
function ProcessError(exitCode, stderr, command) {
|
|
366
366
|
Exception_init_$Init$('Process failed with exit code ' + exitCode, this);
|
|
367
367
|
captureStack(this, ProcessError);
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
370
|
-
this.
|
|
368
|
+
this.yl_1 = exitCode;
|
|
369
|
+
this.zl_1 = stderr;
|
|
370
|
+
this.am_1 = command;
|
|
371
371
|
}
|
|
372
|
-
protoOf(ProcessError).am = function () {
|
|
373
|
-
return listOf([128, 403]).u1(this.xl_1) || contains(this.yl_1, 'permission', true);
|
|
374
|
-
};
|
|
375
372
|
protoOf(ProcessError).bm = function () {
|
|
373
|
+
return listOf([128, 403]).u1(this.yl_1) || contains(this.zl_1, 'permission', true);
|
|
374
|
+
};
|
|
375
|
+
protoOf(ProcessError).cm = function () {
|
|
376
376
|
// Inline function 'kotlin.text.buildString' call
|
|
377
377
|
// Inline function 'kotlin.apply' call
|
|
378
378
|
var this_0 = StringBuilder_init_$Create$();
|
|
379
379
|
// Inline function 'kotlin.text.appendLine' call
|
|
380
|
-
var value = 'Command failed: ' + this.
|
|
380
|
+
var value = 'Command failed: ' + this.am_1 + ' (exit code ' + this.yl_1 + ')';
|
|
381
381
|
// Inline function 'kotlin.text.appendLine' call
|
|
382
382
|
this_0.o(value).q(_Char___init__impl__6a9atx(10));
|
|
383
383
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
384
|
-
var this_1 = this.
|
|
384
|
+
var this_1 = this.zl_1;
|
|
385
385
|
if (!isBlank(this_1)) {
|
|
386
386
|
// Inline function 'kotlin.text.appendLine' call
|
|
387
387
|
this_0.q(_Char___init__impl__6a9atx(10));
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
// Inline function 'kotlin.text.appendLine' call
|
|
391
391
|
this_0.o(value_0).q(_Char___init__impl__6a9atx(10));
|
|
392
392
|
// Inline function 'kotlin.collections.forEach' call
|
|
393
|
-
var _iterator__ex2g4s = lines(this.
|
|
393
|
+
var _iterator__ex2g4s = lines(this.zl_1).r();
|
|
394
394
|
while (_iterator__ex2g4s.s()) {
|
|
395
395
|
var element = _iterator__ex2g4s.t();
|
|
396
396
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -399,14 +399,14 @@
|
|
|
399
399
|
this_0.o(value_1).q(_Char___init__impl__6a9atx(10));
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
if (this.
|
|
402
|
+
if (this.bm() && contains(this.am_1, 'push')) {
|
|
403
403
|
// Inline function 'kotlin.text.appendLine' call
|
|
404
404
|
this_0.q(_Char___init__impl__6a9atx(10));
|
|
405
405
|
// Inline function 'kotlin.text.appendLine' call
|
|
406
406
|
var value_2 = 'The account running this command needs push permission on the remote repository.';
|
|
407
407
|
// Inline function 'kotlin.text.appendLine' call
|
|
408
408
|
this_0.o(value_2).q(_Char___init__impl__6a9atx(10));
|
|
409
|
-
if (contains(this.
|
|
409
|
+
if (contains(this.zl_1, 'TF401027') || contains(this.zl_1, 'Azure DevOps')) {
|
|
410
410
|
// Inline function 'kotlin.text.appendLine' call
|
|
411
411
|
var value_3 = "For Azure DevOps, grant 'Contribute' and 'Create tag' permissions to the Build Service";
|
|
412
412
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
var value_4 = 'identity in repo Security settings.';
|
|
416
416
|
// Inline function 'kotlin.text.appendLine' call
|
|
417
417
|
this_0.o(value_4).q(_Char___init__impl__6a9atx(10));
|
|
418
|
-
} else if (contains(this.
|
|
418
|
+
} else if (contains(this.zl_1, 'GitHub') || contains(this.zl_1, 'github.com')) {
|
|
419
419
|
// Inline function 'kotlin.text.appendLine' call
|
|
420
420
|
var value_5 = "For GitHub Actions, ensure 'permissions: contents: write' is set on the job.";
|
|
421
421
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -430,12 +430,12 @@
|
|
|
430
430
|
return this_0.toString();
|
|
431
431
|
};
|
|
432
432
|
protoOf(ProcessError).toString = function () {
|
|
433
|
-
return 'ProcessError(exitCode=' + this.
|
|
433
|
+
return 'ProcessError(exitCode=' + this.yl_1 + ', stderr=' + this.zl_1 + ', command=' + this.am_1 + ')';
|
|
434
434
|
};
|
|
435
435
|
protoOf(ProcessError).hashCode = function () {
|
|
436
|
-
var result = this.
|
|
437
|
-
result = imul(result, 31) + getStringHashCode(this.yl_1) | 0;
|
|
436
|
+
var result = this.yl_1;
|
|
438
437
|
result = imul(result, 31) + getStringHashCode(this.zl_1) | 0;
|
|
438
|
+
result = imul(result, 31) + getStringHashCode(this.am_1) | 0;
|
|
439
439
|
return result;
|
|
440
440
|
};
|
|
441
441
|
protoOf(ProcessError).equals = function (other) {
|
|
@@ -443,26 +443,26 @@
|
|
|
443
443
|
return true;
|
|
444
444
|
if (!(other instanceof ProcessError))
|
|
445
445
|
return false;
|
|
446
|
-
if (!(this.xl_1 === other.xl_1))
|
|
447
|
-
return false;
|
|
448
446
|
if (!(this.yl_1 === other.yl_1))
|
|
449
447
|
return false;
|
|
450
448
|
if (!(this.zl_1 === other.zl_1))
|
|
451
449
|
return false;
|
|
450
|
+
if (!(this.am_1 === other.am_1))
|
|
451
|
+
return false;
|
|
452
452
|
return true;
|
|
453
453
|
};
|
|
454
454
|
function TagRef(name, commitId, dateTime) {
|
|
455
|
-
this.
|
|
456
|
-
this.
|
|
457
|
-
this.
|
|
455
|
+
this.dm_1 = name;
|
|
456
|
+
this.em_1 = commitId;
|
|
457
|
+
this.fm_1 = dateTime;
|
|
458
458
|
}
|
|
459
459
|
protoOf(TagRef).toString = function () {
|
|
460
|
-
return 'TagRef(name=' + this.
|
|
460
|
+
return 'TagRef(name=' + this.dm_1 + ', commitId=' + this.em_1 + ', dateTime=' + this.fm_1.toString() + ')';
|
|
461
461
|
};
|
|
462
462
|
protoOf(TagRef).hashCode = function () {
|
|
463
|
-
var result = getStringHashCode(this.
|
|
464
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
465
|
-
result = imul(result, 31) + this.
|
|
463
|
+
var result = getStringHashCode(this.dm_1);
|
|
464
|
+
result = imul(result, 31) + getStringHashCode(this.em_1) | 0;
|
|
465
|
+
result = imul(result, 31) + this.fm_1.hashCode() | 0;
|
|
466
466
|
return result;
|
|
467
467
|
};
|
|
468
468
|
protoOf(TagRef).equals = function (other) {
|
|
@@ -470,11 +470,11 @@
|
|
|
470
470
|
return true;
|
|
471
471
|
if (!(other instanceof TagRef))
|
|
472
472
|
return false;
|
|
473
|
-
if (!(this.cm_1 === other.cm_1))
|
|
474
|
-
return false;
|
|
475
473
|
if (!(this.dm_1 === other.dm_1))
|
|
476
474
|
return false;
|
|
477
|
-
if (!this.em_1
|
|
475
|
+
if (!(this.em_1 === other.em_1))
|
|
476
|
+
return false;
|
|
477
|
+
if (!this.fm_1.equals(other.fm_1))
|
|
478
478
|
return false;
|
|
479
479
|
return true;
|
|
480
480
|
};
|