repo-util 1.16.0 → 1.17.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.16.0",
3
+ "version": "1.17.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -67,6 +67,14 @@ for (const o of [
67
67
  execute: () => {
68
68
  console.log("create a hook");
69
69
  }
70
+ },
71
+ update: {
72
+ description: "update hook attributes",
73
+ executeInstance: hook => hook.update(properties)
74
+ },
75
+ delete: {
76
+ description: "delete a hook",
77
+ executeInstance: hook => hook.delete()
70
78
  }
71
79
  }
72
80
  ],
@@ -77,11 +85,15 @@ for (const o of [
77
85
  {
78
86
  update: {
79
87
  description: "update pr attributes",
80
- executeInstance: async pr => pr.update(properties)
88
+ executeInstance: pr => pr.update(properties)
81
89
  },
82
90
  merge: {
83
91
  description: "merge the pr",
84
- executeInstance: async (pr, options) => pr.merge()
92
+ executeInstance: pr => pr.merge()
93
+ },
94
+ decline: {
95
+ description: "decline the pr",
96
+ executeInstance: pr => pr.decline()
85
97
  }
86
98
  }
87
99
  ]
@@ -89,7 +101,7 @@ for (const o of [
89
101
  const command = program.command(`${o[0]} [name...]`);
90
102
  command
91
103
  .option("--json", "output as json")
92
- .option("--no-identifier", "do not output identifier attributes only")
104
+ .option("--no-identifier", "do not output identifier, show attributes only")
93
105
  .option("-a, --attribute <attributes>", "list attribute", a =>
94
106
  a.split(",")
95
107
  );