flush
[pharext/pharext.org] / app / Controller / Github / Repo.php
index bf1358a55400c035d216645784191d2ecef9c58e..ac2ce37d5916cebdb2a3fc68e8cb39f4c2fa1202 100644 (file)
@@ -32,6 +32,7 @@ class Repo extends Github
                settype($repo->tags, "object");
                $this->github->listHooks($repo->full_name, function($hooks) use($repo) {
                        $repo->hooks = $hooks;
+                       $this->app->getView()->addData(["hook" => $this->checkRepoHook($repo)]);
                });
                $this->github->listTags($repo->full_name, 1, $this->createTagsCallback($repo));
                $this->github->listReleases($repo->full_name, 1, $this->createReleasesCallback($repo));
@@ -44,6 +45,9 @@ class Repo extends Github
                                $tag = $release->tag_name;
                                settype($repo->tags->$tag, "object");
                                $repo->tags->$tag->release = $release;
+                               $this->github->listReleaseAssets($repo->full_name, $release->id, function($assets) use($release) {
+                                       $release->assets = $assets;
+                               });
                        }
                };
        }