repo-util 1.14.0 → 1.14.3
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/package.json +8 -8
- package/src/repo-util-cli.mjs +15 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repo-util",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"aggregation-repository-provider": "^
|
|
25
|
-
"bitbucket-repository-provider": "^
|
|
26
|
-
"commander": "^9.
|
|
27
|
-
"gitea-repository-provider": "^2.1.
|
|
28
|
-
"github-repository-provider": "^7.26.
|
|
29
|
-
"local-repository-provider": "^8.0.
|
|
24
|
+
"aggregation-repository-provider": "^5.0.0",
|
|
25
|
+
"bitbucket-repository-provider": "^4.0.1",
|
|
26
|
+
"commander": "^9.2.0",
|
|
27
|
+
"gitea-repository-provider": "^2.1.24",
|
|
28
|
+
"github-repository-provider": "^7.26.10",
|
|
29
|
+
"local-repository-provider": "^8.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"ava": "^4.2.0",
|
|
33
|
-
"c8": "^7.11.
|
|
33
|
+
"c8": "^7.11.2",
|
|
34
34
|
"execa": "^6.1.0",
|
|
35
35
|
"semantic-release": "^19.0.2"
|
|
36
36
|
},
|
package/src/repo-util-cli.mjs
CHANGED
|
@@ -31,7 +31,12 @@ for (const o of [
|
|
|
31
31
|
["branch", "branches", ["fullName"]],
|
|
32
32
|
["project", "projects", ["fullName"]],
|
|
33
33
|
["milestone", "milestones", ["fullName"]],
|
|
34
|
-
[
|
|
34
|
+
[
|
|
35
|
+
"hook",
|
|
36
|
+
"hooks",
|
|
37
|
+
["url", "events", "active"],
|
|
38
|
+
{ create: { description: "create a hook", execute: () => {} } }
|
|
39
|
+
],
|
|
35
40
|
[
|
|
36
41
|
"pull-request",
|
|
37
42
|
"pullRequests",
|
|
@@ -105,10 +110,17 @@ async function list(provider, names, options, slot, attributes, actions) {
|
|
|
105
110
|
json.push(object);
|
|
106
111
|
} else {
|
|
107
112
|
for (const a of attributes) {
|
|
113
|
+
let value = object[a];
|
|
114
|
+
if (Array.isArray(value)) {
|
|
115
|
+
value = value.join(" ");
|
|
116
|
+
} else if (value instanceof Set) {
|
|
117
|
+
value = [...value].join(" ");
|
|
118
|
+
}
|
|
119
|
+
|
|
108
120
|
if (options.identifier === false) {
|
|
109
|
-
console.log(
|
|
121
|
+
console.log(value);
|
|
110
122
|
} else {
|
|
111
|
-
console.log(object.fullName + ":",
|
|
123
|
+
console.log(object.fullName + ":", value);
|
|
112
124
|
}
|
|
113
125
|
}
|
|
114
126
|
}
|