1 | <?php |
||
23 | class KeepAChangelogRenderer extends MarkdownRenderer |
||
24 | { |
||
25 | protected $normalization = Normalization::class; |
||
26 | |||
27 | protected $actions; |
||
28 | |||
29 | public function renderTag(Tag $tag) |
||
39 | |||
40 | public function renderAction($notes, $action) |
||
47 | |||
48 | public function renderActionHead($action) |
||
52 | |||
53 | public function scanNote(Note $note) |
||
65 | |||
66 | protected $words = [ |
||
67 | 'removed' => 'removed', |
||
68 | 'deleted' => 'removed', |
||
69 | 'changed' => 'changed', |
||
70 | 'added' => 'added', |
||
71 | 'fixed' => 'fixed', |
||
72 | |||
73 | 'remove' => 'removed', |
||
74 | 'delete' => 'removed', |
||
75 | 'change' => 'changed', |
||
76 | 'add' => 'added', |
||
77 | 'fix' => 'fixed', |
||
78 | |||
79 | 'update' => 'changed', |
||
80 | 'fixes' => 'fixed', |
||
81 | ]; |
||
82 | |||
83 | public function detectAction(Note $note) |
||
102 | } |
||
103 |