From 369ba1e43c7b9567a11971d105bd82d952b95f72 Mon Sep 17 00:00:00 2001 From: samosvalishe Date: Mon, 18 May 2026 19:42:50 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80?= =?UTF-8?q?=D0=B6=D0=BA=D0=B0=20refactor-=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=20=D0=B2=20release-workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3013fe9..c7f9ab6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -198,7 +198,7 @@ jobs: MAJOR=$((MAJOR + 1)) MINOR=0 PATCH=0 - elif printf '%s\n' "$COMMITS" | grep -Eiq '^feat([(:! ]|$)'; then + elif printf '%s\n' "$COMMITS" | grep -Eiq '^(feat|refactor)([(:! ]|$)'; then BUMP="minor" MINOR=$((MINOR + 1)) PATCH=0 @@ -230,10 +230,11 @@ jobs: RANGE: ${{ steps.meta.outputs.range }} run: | strip_prefix() { - sed -E 's/^(feat|fix|break)([(!:]|[[:space:]])+[[:space:]]*//I' + sed -E 's/^(feat|fix|break|refactor)([(!:]|[[:space:]])+[[:space:]]*//I' } FEATURES="$(git log --no-merges --format='%s (%h)' "$RANGE" | grep -Ei '^feat([(:! ]|$)' | strip_prefix | LC_ALL=C sort -f || true)" + REFACTORS="$(git log --no-merges --format='%s (%h)' "$RANGE" | grep -Ei '^refactor([(:! ]|$)' | strip_prefix | LC_ALL=C sort -f || true)" FIXES="$(git log --no-merges --format='%s (%h)' "$RANGE" | grep -Ei '^fix([(:! ]|$)' | strip_prefix | LC_ALL=C sort -f || true)" BREAKING="$(git log --no-merges --format='%s (%h)' "$RANGE" | grep -Ei '^break([(:! ]|$)' | strip_prefix | LC_ALL=C sort -f || true)" @@ -256,6 +257,13 @@ jobs: echo fi + if [ -n "$REFACTORS" ]; then + echo "### Refactoring" + echo + printf '%s\n' "$REFACTORS" | sed 's/^/- /' + echo + fi + if [ -n "$FIXES" ]; then echo "### Bug Fixes" echo @@ -283,7 +291,7 @@ jobs: if: steps.meta.outputs.should_release != 'true' run: | echo "No new semantic release created." - echo "Add a commit starting with break, feat, or fix after the latest tag." + echo "Add a commit starting with break, feat, fix, or refactor after the latest tag." docker: name: Publish Docker image