Skip to content

Commit 57c5da6

Browse files
committed
Draft the version the labels imply, not always a patch
1 parent 46c36f6 commit 57c5da6

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/release-drafter.yml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,18 @@
99
# always applies dependencies alongside them, and that is categorised.
1010
# Note that `categories` is an array: a repo that overrides it via _extends
1111
# replaces the whole array rather than appending to it.
12-
name-template: $NEXT_PATCH_VERSION
13-
tag-template: $NEXT_PATCH_VERSION
12+
# $RESOLVED_VERSION follows the version-resolver below, so a PR labelled
13+
# enhancement drafts a minor and a PR labelled bug drafts a patch. The previous
14+
# $NEXT_PATCH_VERSION always drafted a patch, which meant every minor release in
15+
# the org had to be retitled by hand before publishing.
16+
#
17+
# tag-template here is a fallback with no artifact prefix, and no repo should
18+
# rely on it: every repo tags as <artifact>-<version>, so each one overrides
19+
# tag-template and sets tag-prefix to match. Without tag-prefix the drafter
20+
# parses the version out of the tag string as best it can - plexus-i18n drafted
21+
# 18.0.1 once, having read the 18 out of its own name.
22+
name-template: $RESOLVED_VERSION
23+
tag-template: $RESOLVED_VERSION
1424
version-template: $MAJOR.$MINOR.$PATCH
1525

1626
categories:

0 commit comments

Comments
 (0)