repo-util 1.16.0 → 1.18.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-util",
3
- "version": "1.16.0",
3
+ "version": "1.18.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": "^5.2.21",
25
- "bitbucket-repository-provider": "^4.1.19",
24
+ "aggregation-repository-provider": "^5.2.23",
25
+ "bitbucket-repository-provider": "^4.1.21",
26
26
  "commander": "^9.2.0",
27
- "gitea-repository-provider": "^2.1.49",
28
- "github-repository-provider": "^7.26.37",
29
- "local-repository-provider": "^8.0.8"
27
+ "gitea-repository-provider": "^2.1.52",
28
+ "github-repository-provider": "^7.28.1",
29
+ "local-repository-provider": "^8.0.9"
30
30
  },
31
31
  "devDependencies": {
32
32
  "ava": "^4.2.0",
@@ -29,9 +29,22 @@ for (const o of [
29
29
  [
30
30
  "provider",
31
31
  "providers",
32
- ["fullName", ...Object.keys(visibleAttributes(AggregationProvider))]
32
+ ["fullName", ...Object.keys(visibleAttributes(AggregationProvider))],
33
+ {
34
+ update: {
35
+ description: "update provider attributes",
36
+ executeInstance: async provider => provider.update(properties)
37
+ }
38
+ }
39
+ ],
40
+ ["group", "repositoryGroups", ["fullName"],
41
+ {
42
+ update: {
43
+ description: "update group attributes",
44
+ executeInstance: async group => group.update(properties)
45
+ }
46
+ }
33
47
  ],
34
- ["group", "repositoryGroups", ["fullName"]],
35
48
  [
36
49
  "repository",
37
50
  "repositories",
@@ -67,6 +80,14 @@ for (const o of [
67
80
  execute: () => {
68
81
  console.log("create a hook");
69
82
  }
83
+ },
84
+ update: {
85
+ description: "update hook attributes",
86
+ executeInstance: hook => hook.update(properties)
87
+ },
88
+ delete: {
89
+ description: "delete a hook",
90
+ executeInstance: hook => hook.delete()
70
91
  }
71
92
  }
72
93
  ],
@@ -77,11 +98,15 @@ for (const o of [
77
98
  {
78
99
  update: {
79
100
  description: "update pr attributes",
80
- executeInstance: async pr => pr.update(properties)
101
+ executeInstance: pr => pr.update(properties)
81
102
  },
82
103
  merge: {
83
104
  description: "merge the pr",
84
- executeInstance: async (pr, options) => pr.merge()
105
+ executeInstance: pr => pr.merge()
106
+ },
107
+ decline: {
108
+ description: "decline the pr",
109
+ executeInstance: pr => pr.decline()
85
110
  }
86
111
  }
87
112
  ]
@@ -89,7 +114,7 @@ for (const o of [
89
114
  const command = program.command(`${o[0]} [name...]`);
90
115
  command
91
116
  .option("--json", "output as json")
92
- .option("--no-identifier", "do not output identifier attributes only")
117
+ .option("--no-identifier", "do not output identifier, show attributes only")
93
118
  .option("-a, --attribute <attributes>", "list attribute", a =>
94
119
  a.split(",")
95
120
  );