From 31abee5c219ace664061c4672ff241a143ffdb04 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 10 Jul 2022 15:20:31 +0530 Subject: [PATCH] [update] Make minor releases optional in default template --- update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.rb b/update.rb index 4e55e9fc..3187c9f4 100644 --- a/update.rb +++ b/update.rb @@ -17,7 +17,7 @@ OPTIONAL_PRODUCT = ARGV[3] # This is more lenient from semver, but disallows MAJOR=0 as well # It also allows MAJOR.MINOR, which is quite common DEFAULT_VERSION_REGEX = '^v?(?[1-9]\d*)\.(?0|[1-9]\d*)\.?(?0|[1-9]\d*)?$' -DEFAULT_TAG_TEMPLATE = '{{major}}.{{minor}}{% if patch %}.{{patch}}{%endif%}' +DEFAULT_TAG_TEMPLATE = "{{major}}{% if minor %}.{{minor}}{% if patch %}.{{patch}}{%endif%}{%endif%}" def fetch_git_releases(repo_dir, config) pwd = Dir.pwd