3 namespace app\Github\API\Repos
;
5 use app\Github\API\Callback
;
6 use app\Github\API\Hooks\HooksCallback
;
7 use app\Github\API\Tags\TagsCallback
;
11 class RepoCallback
extends Callback
13 protected function exec($repo, $links = null) {
16 $this->api
->listHooks($repo->full_name
)->then(new HooksCallback($this->api
, $repo)),
17 $this->api
->listTags($repo->full_name
, 1)->then(new TagsCallback($this->api
, $repo)),
18 $this->api
->listReleases($repo->full_name
, 1)->then(new ReleasesCallback($this->api
, $repo)),
19 $this->api
->readContents($repo->full_name
)->then(new ContentsCallback($this->api
, $repo)),