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)
2323 if format == ' md' then
2424 commit_format = ' [%h](https://github.com/nvim-orgmode/orgmode/commit/%h)'
2525 end
26+ local feature_format = format == ' md' and ' **%s**' or ' *%s*'
2627
2728 local commits = vim .fn .systemlist ((" git log %s..master --pretty=format:'%%s (%s)'" ):format (latest_tag , commit_format ))
2829 local fixes = {}
@@ -32,8 +33,11 @@ local function get_changes(format, latest_tag)
3233 for _ , commit in ipairs (commits ) do
3334 local type = commit :match (' ^(.-):' )
3435 if type then
35- type = type
36+ local feature = type : match ( ' %((.-)%) ' )
3637 local message = vim .trim (commit :sub (# type + 2 ))
38+ if feature then
39+ message = (' %s: %s' ):format (feature_format :format (feature ), message )
40+ end
3741 if vim .endswith (type , ' !' ) then
3842 table.insert (breaking_changes , message )
3943 elseif vim .startswith (type , ' fix' ) then
You can’t perform that action at this time.
0 commit comments