X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=app%2FController%2FGithub%2FRelease.php;h=f0dd55f840c3498c255515f14e0ea39886a4a6eb;hb=1097a4f83de3562c3518f31b168448c2c2ac0451;hp=fd3550567da98d4164eec8c2b64bade9c869e832;hpb=063205ca833946e20a1c2235418c045895153c5c;p=pharext%2Fpharext.org diff --git a/app/Controller/Github/Release.php b/app/Controller/Github/Release.php index fd35505..f0dd55f 100644 --- a/app/Controller/Github/Release.php +++ b/app/Controller/Github/Release.php @@ -15,17 +15,17 @@ class Release extends Github call_user_func(new RepoCallback($this->github), $repo, $links); $this->github->listReleases($repo->full_name, null, function($releases) use($repo) { - $tag = $this->app->getRequest()->getForm("tag"); + $config = $this->app->getRequest()->getForm(); foreach ($releases as $r) { - if ($r->tag_name === $tag) { - $this->github->uploadAssetForRelease($repo, $r, function() use($repo) { + if ($r->tag_name === $config->tag) { + $this->github->uploadAssetForRelease($repo, $r, $config, function() use($repo) { $this->app->redirect($this->app->getBaseUrl()->mod("./github/" . $repo->full_name)); }); return; } } - $this->github->createReleaseFromTag($repo, $tag, function() use($repo) { + $this->github->createReleaseFromTag($repo, $tag, $config, function() use($repo) { $this->app->redirect($this->app->getBaseUrl()->mod("./github/" . $repo->full_name)); }); });