From 47db5984e21f52a953631c04f24a7c031bc51e9d Mon Sep 17 00:00:00 2001 From: Kasper Thystrup Karstensen Date: Thu, 2 Jul 2026 16:26:12 +0200 Subject: [PATCH 1/3] Update version label validation in workflow --- .github/workflows/VALIDATION.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/VALIDATION.yml b/.github/workflows/VALIDATION.yml index 3f8a3d6..d616558 100644 --- a/.github/workflows/VALIDATION.yml +++ b/.github/workflows/VALIDATION.yml @@ -62,16 +62,16 @@ jobs: const labels = pr.data.labels .map(l => l.name) .filter(l => - ["feature","patch","build"].includes(l) + ["feature","patch","build","major"].includes(l) ); if (labels.length === 0) { core.setFailed( - `PR does not contain any version labels, it must contain exactly one of the following labels - feature, patch, build` + `PR does not contain any version labels, it must contain exactly one of the following labels - major, feature, patch, build` ); } else if (labels.length > 1) { core.setFailed( - `PR contains multiple version labels, it must contain exactly one of the following labels - feature, patch, build. Found: ${labels.join(", ")}` + `PR contains multiple version labels, it must contain exactly one of the following labels - major, feature, patch, build. Found: ${labels.join(", ")}` ); } From e0ffdb83068bea2e5ecba73a34321f6f69c02551 Mon Sep 17 00:00:00 2001 From: Kasper Thystrup Karstensen Date: Thu, 2 Jul 2026 16:29:27 +0200 Subject: [PATCH 2/3] Added major label to bump workflow --- .github/workflows/VERSION.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/VERSION.yml b/.github/workflows/VERSION.yml index d3f6258..e021c50 100644 --- a/.github/workflows/VERSION.yml +++ b/.github/workflows/VERSION.yml @@ -29,6 +29,7 @@ jobs: id: label run: | echo "LABEL=${{ + contains(github.event.pull_request.labels.*.name, 'major') && 'major' || contains(github.event.pull_request.labels.*.name, 'feature') && 'feature' || contains(github.event.pull_request.labels.*.name, 'patch') && 'patch' || 'build' From e26567f37154c0edc71718dd043de5d7781e3000 Mon Sep 17 00:00:00 2001 From: Kasper Thystrup Karstensen Date: Thu, 2 Jul 2026 16:31:16 +0200 Subject: [PATCH 3/3] Added Major to bump_version --- .github/scripts/bump_version.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/scripts/bump_version.py b/.github/scripts/bump_version.py index 760cd33..e79db12 100644 --- a/.github/scripts/bump_version.py +++ b/.github/scripts/bump_version.py @@ -12,7 +12,13 @@ major, minor, patch, build = map(int, m.groups()) -if label == "feature": +if label == "major": + major += 1 + minor = 0 + patch = 0 + build = 0 + +elif label == "feature": minor += 1 patch = 0 build = 0