webhook create&delete
[pharext/pharext.org] / app / Github / API.php
index 10cf2c0c33640f90f9dfbbc360b69366f4d0c000..f62bf06cc1dc9659c4fdfe62de4c474ca23a247f 100644 (file)
@@ -149,4 +149,14 @@ class API
                $fetch = new Fetch\Contents($this, compact("repo", "path"));
                return $fetch($callback);
        }
+       
+       function createRepoHook($repo, callable $callback) {
+               $create = new Create\Webhook($this, compact("repo"));
+               return $create($callback);
+       }
+       
+       function deleteRepoHook($repo, $id, callable $callback) {
+               $delete = new Delete\Webhook($this, compact("repo", "id"));
+               return $delete($callback);
+       }
 }