for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Changelog keeper
*
* @link https://github.com/hiqdev/chkipper
* @package chkipper
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\chkipper\lib\changelog;
use hiqdev\chkipper\lib\Note;
* Markdown changelog renderer.
* @author Andrii Vasyliev <[email protected]>
class MarkdownRenderer extends \hiqdev\chkipper\lib\renderers\MarkdownRenderer
{
protected $normalization = Normalization::class;
public function renderNote(Note $note)
$str = $this->renderNoteHead($note);
if (!$str) {
return;
}
$authors = [];
foreach ($note->getCommits() as $commit) {
$authors[$commit->getAuthor()] = '[' . $commit->getAuthor() . ']';
if ($authors) {
$str .= ' (' . implode(', ', $authors) . ')';
return $str;