Skip to content

Commit

Permalink
renamed getVersion -> getRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed May 3, 2017
1 parent 2f71f65 commit 73cf89d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/controllers/GitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ class GitController extends \hidev\base\Controller
*/
protected $tag;

public function actionRelease($version = null)
public function actionRelease($release = null)
{
$version = $this->take('version')->getVersion($version);
$message = "version bump to $version";
$release = $this->take('version')->getRelease($release);
$message = "version bump to $release";
$this->getComponent()->commit($message);
$this->getComponent()->tag($version);
$this->getComponent()->tag($release);

return $this->getComponent()->push();
}
Expand Down
8 changes: 4 additions & 4 deletions src/controllers/GithubController.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,18 @@ public static function exists($repo)
/**
* Creates github release.
*/
public function actionRelease($version = null)
public function actionRelease($release = null)
{
$version = $this->take('version')->getVersion($version);
$release = $this->take('version')->getRelease($release);
$notes = $this->take('chkipper')->getReleaseNotes();
$wait = $this->actionWaitPush();
if ($wait) {
return $wait;
}

return $this->request('POST', '/repos/' . $this->getFull_name() . '/releases', [
'tag_name' => $version,
'name' => $version,
'tag_name' => $release,
'name' => $release,
'body' => $notes,
]);
}
Expand Down

0 comments on commit 73cf89d

Please sign in to comment.