- extract($args);
- if ($this->checkToken()) {
- $this->github->readRepo("$owner/$name")->then(
- new RepoCallback($this->github)
- )->done(function($result) use($owner, $name) {
- list($repo) = $result;
- $hook = $this->github->checkRepoHook($repo);
-
- $this->app->getView()->addData(compact("owner", "name", "repo", "hook"));
- });
- $this->github->drain();