{{ $type := .Get 0 }} {{ $text := .Get 1 }} {{ with eq $type "added" }} {{ $type }} {{ end }} {{ with eq $type "changed" }} {{ $type }} {{ end }} {{ with eq $type "fixed" }} {{ $type }} {{ end }} {{ with eq $type "performance" }} {{ $type }} {{ end }} {{ with eq $type "security" }} {{ $type }} {{ end }} {{ with eq $type "removed" }} {{ $type }} {{ end }} {{ with eq $type "deprecated" }} {{ $type }} {{ end }} {{ with eq $type "info" }} {{ $text }} {{ end }} {{ with eq $type "success" }} {{ $text }} {{ end }} {{ with eq $type "warning" }} {{ $text }} {{ end }} {{ with eq $type "danger" }} {{ $text }} {{ end }}