Skip to content

Commit

Permalink
Fix line wrapping of GitHubRelease::getBody() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Mar 22, 2016
1 parent d3be9ef commit 704782c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Task/Development/GitHubRelease.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ protected function getBody()
{
$body = $this->description;
if (!empty($changes)) {
$changes = array_map(function ($line) { return "* $line"; }, $this->changes);
$changes = array_map(
function ($line) {
return "* $line";
},
$this->changes
);
$changesText = implode("\n", $this->changes);
$body .= "### Changelog \n\n$changesText";
}
Expand Down

0 comments on commit 704782c

Please sign in to comment.