@@ -43,7 +43,6 @@ def update_changelog(
43
43
marker : str ,
44
44
version_regex : str ,
45
45
template_url : str ,
46
- commit_style : str ,
47
46
) -> None :
48
47
"""
49
48
Update the given changelog file in place.
@@ -53,15 +52,16 @@ def update_changelog(
53
52
marker: The line after which to insert new contents.
54
53
version_regex: A regular expression to find currently documented versions in the file.
55
54
template_url: The URL to the Jinja template used to render contents.
56
- commit_style: The style of commit messages to parse.
57
55
"""
58
56
from git_changelog .build import Changelog
57
+ from git_changelog .commit import AngularStyle
59
58
from jinja2 .sandbox import SandboxedEnvironment
60
59
60
+ AngularStyle .DEFAULT_RENDER .insert (0 , AngularStyle .TYPES ["build" ])
61
61
env = SandboxedEnvironment (autoescape = False )
62
62
template_text = urlopen (template_url ).read ().decode ("utf8" ) # noqa: S310
63
63
template = env .from_string (template_text )
64
- changelog = Changelog ("." , style = commit_style )
64
+ changelog = Changelog ("." , style = "angular" )
65
65
66
66
if len (changelog .versions_list ) == 1 :
67
67
last_version = changelog .versions_list [0 ]
@@ -101,7 +101,6 @@ def changelog(ctx):
101
101
"marker" : "<!-- insertion marker -->" ,
102
102
"version_regex" : r"^## \[v?(?P<version>[^\]]+)" ,
103
103
"template_url" : template_url ,
104
- "commit_style" : "angular" ,
105
104
},
106
105
title = "Updating changelog" ,
107
106
pty = PTY ,
0 commit comments