repo-util 1.12.2 → 1.13.1
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 +5 -5
- package/src/repo-util-cli.mjs +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repo-util",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,12 +21,12 @@
|
|
|
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": "^4.0.
|
|
24
|
+
"aggregation-repository-provider": "^4.0.40",
|
|
25
25
|
"bitbucket-repository-provider": "^3.10.10",
|
|
26
26
|
"commander": "^9.0.0",
|
|
27
|
-
"gitea-repository-provider": "^
|
|
28
|
-
"github-repository-provider": "^7.25.
|
|
29
|
-
"local-repository-provider": "^7.0
|
|
27
|
+
"gitea-repository-provider": "^2.0.0",
|
|
28
|
+
"github-repository-provider": "^7.25.34",
|
|
29
|
+
"local-repository-provider": "^7.2.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"ava": "^4.0.1",
|
package/src/repo-util-cli.mjs
CHANGED
|
@@ -30,10 +30,12 @@ program
|
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
for (const o of [
|
|
33
|
-
["provider", "providers", ["
|
|
34
|
-
["group", "repositoryGroups", ["
|
|
33
|
+
["provider", "providers", ["fullName"]],
|
|
34
|
+
["group", "repositoryGroups", ["fullName"]],
|
|
35
35
|
["repository", "repositories", ["fullName"]],
|
|
36
36
|
["branch", "branches", ["fullName"]],
|
|
37
|
+
["project", "projects", ["fullName"]],
|
|
38
|
+
["milestone", "milestones", ["fullName"]],
|
|
37
39
|
["hook", "hooks", ["url"]],
|
|
38
40
|
[
|
|
39
41
|
"pull-request",
|
|
@@ -106,12 +108,8 @@ async function list(provider, names, options, slot, attributes, actions) {
|
|
|
106
108
|
if (options.json) {
|
|
107
109
|
json.push(object);
|
|
108
110
|
} else {
|
|
109
|
-
let prefix = "";
|
|
110
|
-
if (object.repository) {
|
|
111
|
-
prefix = object.repository.fullName + ": ";
|
|
112
|
-
}
|
|
113
111
|
for (const a of attributes) {
|
|
114
|
-
console.log(
|
|
112
|
+
console.log(object.fullName + ":", object[a]);
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
115
|
}
|