repo-util 1.12.1 → 1.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-util",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
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.22",
25
- "bitbucket-repository-provider": "^3.10.8",
26
- "commander": "^8.3.0",
27
- "gitea-repository-provider": "^1.16.61",
28
- "github-repository-provider": "^7.25.16",
29
- "local-repository-provider": "^7.0.117"
24
+ "aggregation-repository-provider": "^4.0.40",
25
+ "bitbucket-repository-provider": "^3.10.10",
26
+ "commander": "^9.0.0",
27
+ "gitea-repository-provider": "^1.16.67",
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",
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { readFileSync } from "fs";
4
- import program, { Option } from "commander";
4
+ import { program, Option } from "commander";
5
5
  import AggregationProvider from "aggregation-repository-provider";
6
- import { asArray } from "repository-provider";
7
6
 
8
7
  process.on("uncaughtException", err => console.error(err));
9
8
  process.on("unhandledRejection", reason => console.error(reason));
@@ -31,10 +30,12 @@ program
31
30
  );
32
31
 
33
32
  for (const o of [
34
- ["provider", "providers", ["name"]],
35
- ["group", "repositoryGroups", ["name"]],
33
+ ["provider", "providers", ["fullName"]],
34
+ ["group", "repositoryGroups", ["fullName"]],
36
35
  ["repository", "repositories", ["fullName"]],
37
36
  ["branch", "branches", ["fullName"]],
37
+ ["project", "projects", ["fullName"]],
38
+ ["milestone", "milestones", ["fullName"]],
38
39
  ["hook", "hooks", ["url"]],
39
40
  [
40
41
  "pull-request",
@@ -107,12 +108,8 @@ async function list(provider, names, options, slot, attributes, actions) {
107
108
  if (options.json) {
108
109
  json.push(object);
109
110
  } else {
110
- let prefix = "";
111
- if (object.repository) {
112
- prefix = object.repository.fullName + ": ";
113
- }
114
111
  for (const a of attributes) {
115
- console.log(prefix, object[a]);
112
+ console.log(object.fullName + ":", object[a]);
116
113
  }
117
114
  }
118
115
  }