Skip to content

Commit

Permalink
Fix bug in GitHubRelease::getBody().
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Mar 22, 2016
1 parent 8025de0 commit bbd22a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Task/Development/GitHubRelease.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function tag($tag)
return $this;
}

public function draft(boolean $draft)
public function draft($draft)
{
$this->draft = $draft;
return $this;
Expand Down Expand Up @@ -95,14 +95,14 @@ public function change(string $change)
protected function getBody()
{
$body = $this->description;
if (!empty($changes)) {
if (!empty($this->changes)) {
$changes = array_map(
function ($line) {
return "* $line";
},
$this->changes
);
$changesText = implode("\n", $this->changes);
$changesText = implode("\n", $changes);
$body .= "### Changelog \n\n$changesText";
}
return $body;
Expand Down

0 comments on commit bbd22a7

Please sign in to comment.