33
44name-template : ' easydiffraction $RESOLVED_VERSION'
55tag-template : ' v$RESOLVED_VERSION'
6+
67categories :
78 - title : ' Added'
8- labels : # Labels to use to categorize a pull request as a feature
9+ labels :
910 - ' [scope] significant'
1011 - ' [scope] enhancement'
11- - ' [scope] documentation'
1212 - title : ' Fixed'
13- labels : # Labels to use to categorize a pull request as a bug fix
13+ labels :
1414 - ' [scope] bug'
1515 - title : ' Changed'
16- labels : # Labels to use to categorize a pull request as a maintenance task
16+ labels :
1717 - ' [scope] maintenance'
18+ - title : ' Documentation'
19+ labels :
20+ - ' [scope] documentation'
21+
1822change-template : ' - $TITLE (#$NUMBER)'
19- change-title-escapes : ' \<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
23+ change-title-escapes : ' \<*_&'
24+
2025version-resolver :
2126 major :
2227 labels :
@@ -28,7 +33,21 @@ version-resolver:
2833 labels :
2934 - ' [scope] bug'
3035 - ' [scope] maintenance'
31- - ' [scope] documentation'
3236 default : patch
37+
38+ # Custom logic for documentation post-releases
39+ # This is a workaround because Release Drafter doesn’t natively support .postN
40+ # We'll append .postN via the version-template below
41+ # - If any merged PR has the [scope] documentation label, the version becomes previous_version.postN.
42+ # - Increment increases for each new .postN release.
43+ # - If no docs label is found, normal SemVer bumping applies.
44+ version-template : >
45+ {% if prs | selectattr("labels", "contains", "[scope] documentation") | list |
46+ length > 0 %}
47+ {{ previous_tag | replace("v","") }}.post{{ increment }}
48+ {% else %}
49+ $RESOLVED_VERSION
50+ {% endif %}
51+
3352template : |
3453 $CHANGES
0 commit comments