repository-provider 25.5.10 → 25.5.11

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": "repository-provider",
3
- "version": "25.5.10",
3
+ "version": "25.5.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/hook.mjs CHANGED
@@ -58,4 +58,16 @@ export class Hook extends BaseObject {
58
58
  toJSON() {
59
59
  return optionJSON(this, { id: this.id, events: [...this.events] });
60
60
  }
61
+
62
+ info(...args) {
63
+ return this.repository.info(...args);
64
+ }
65
+
66
+ warn(...args) {
67
+ return this.repository.warn(...args);
68
+ }
69
+
70
+ error(...args) {
71
+ return this.repository.error(...args);
72
+ }
61
73
  }
@@ -239,6 +239,10 @@ export function RepositoryOwner(base) {
239
239
  yield* this._list("milestones", patterns);
240
240
  }
241
241
 
242
+ async hook(name) {
243
+ return this._lookup("hook", name);
244
+ }
245
+
242
246
  async *hooks(patterns) {
243
247
  yield* this._list("hooks", patterns);
244
248
  }