File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,11 @@ def __call__(self) -> None: # noqa: C901
293
293
"unreleased_version" : new_tag_version ,
294
294
"template" : self .template ,
295
295
"extras" : self .extras ,
296
- "incremental" : True ,
296
+ "incremental" : (
297
+ True
298
+ if not self .config .is_customized
299
+ else self .config .settings .get ("changelog_incremental" )
300
+ ),
297
301
"dry_run" : True ,
298
302
},
299
303
)
@@ -305,7 +309,14 @@ def __call__(self) -> None: # noqa: C901
305
309
self .config ,
306
310
{
307
311
"unreleased_version" : new_tag_version ,
308
- "incremental" : True ,
312
+ "incremental" : self .config .settings .get (
313
+ "changelog_incremental" ,
314
+ (
315
+ True
316
+ if not self .config .is_customized
317
+ else self .config .settings .get ("changelog_incremental" )
318
+ ),
319
+ ),
309
320
"dry_run" : dry_run ,
310
321
"template" : self .template ,
311
322
"extras" : self .extras ,
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ def settings(self) -> Settings:
19
19
def path (self ) -> Path | None :
20
20
return self ._path
21
21
22
+ @property
23
+ def is_customized (self ) -> bool :
24
+ return type (self ) is not BaseConfig
25
+
22
26
def set_key (self , key , value ):
23
27
"""Set or update a key in the conf.
24
28
You can’t perform that action at this time.
0 commit comments