{
function __invoke(array $args = null) {
if ($this->checkToken()) {
- $this->github->fetchRepos(
+ $this->github->listRepos(
$this->app->getRequest()->getQuery("page"),
[$this, "reposCallback"]
)->send();
$this->app->getView()->addData(compact("repos", "links"));
foreach ($repos as $repo) {
- $this->github->fetchHooks($repo->full_name, function($hooks) use($repo) {
+ $this->github->listHooks($repo->full_name, function($hooks) use($repo) {
$repo->hooks = $hooks;
});
}