File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ local function get_changes(format, latest_tag)
23
23
if format == ' md' then
24
24
commit_format = ' [%h](https://github.com/nvim-orgmode/orgmode/commit/%h)'
25
25
end
26
+ local feature_format = format == ' md' and ' **%s**' or ' *%s*'
26
27
27
28
local commits = vim .fn .systemlist ((" git log %s..master --pretty=format:'%%s (%s)'" ):format (latest_tag , commit_format ))
28
29
local fixes = {}
@@ -32,8 +33,11 @@ local function get_changes(format, latest_tag)
32
33
for _ , commit in ipairs (commits ) do
33
34
local type = commit :match (' ^(.-):' )
34
35
if type then
35
- type = type
36
+ local feature = type : match ( ' %((.-)%) ' )
36
37
local message = vim .trim (commit :sub (# type + 2 ))
38
+ if feature then
39
+ message = (' %s: %s' ):format (feature_format :format (feature ), message )
40
+ end
37
41
if vim .endswith (type , ' !' ) then
38
42
table.insert (breaking_changes , message )
39
43
elseif vim .startswith (type , ' fix' ) then
You can’t perform that action at this time.
0 commit comments