Skip to content

Commit

Permalink
simplified ChangelogHandler::parse/render
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jul 19, 2015
1 parent 8ea5658 commit 675fa1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/ChangelogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ class ChangelogHandler extends BaseHandler
{
public function parsePath($text)
{
return ['history' => $this->goal->config->commits->history];
/// do nothing
}

public function render($data)
{
$res = CommitsHandler::renderHeader('changelog');

foreach ($data['history'] as $tag => $notes) {
foreach ($this->goal->getConfig()->commits->getHistory() as $tag => $notes) {
$tag = CommitsHandler::arrayPop($notes, 'tag') ?: $tag;
$new = CommitsHandler::arrayPop($notes, '');
$res .= CommitsHandler::renderTag($tag);
Expand Down

0 comments on commit 675fa1b

Please sign in to comment.