From d25ec6b25ccb9fb0f8a5ee6c83dfa300e8bd984d Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Wed, 23 Jul 2025 22:22:17 +0200 Subject: [PATCH] Update feature request template and release workflow Removed the unused 'type' field from the feature request issue template. Improved the release workflow to fetch commit history since the last version tag instead of the last tag, ensuring more accurate changelog generation. --- .github/ISSUE_TEMPLATE/feature-request.yml | 2 -- .github/workflows/release.yml | 14 +++++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index a3d972f..c8b1cb4 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -2,8 +2,6 @@ name: ✨ Feature Request description: Suggest an idea for this project title: '[Feature Request]: ' labels: ['enhancement'] -type: Feature - body: - type: markdown attributes: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f5ed08..e7d5a77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,18 +36,18 @@ jobs: echo "final_tag=v${{ steps.version.outputs.base_version }}" >> $GITHUB_OUTPUT # ZMIANA: Poprawione obsługa multi-line output (z delimiterem EOF, bez zastępowania \n) - - name: Get commit history since last tag + - name: Get commit history since last version tag id: commit_history run: | - LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") - - if [ -z "$LAST_TAG" ]; then - RANGE="HEAD" + VERSION_TAG="v${{ steps.version.outputs.base_version }}" + git fetch --tags + + if git rev-parse "$VERSION_TAG" >/dev/null 2>&1; then + RANGE="$VERSION_TAG..HEAD" else - RANGE="$LAST_TAG..HEAD" + RANGE="HEAD" fi - # Pobierz listę commitów i przefiltruj tylko te znaczące HISTORY=$(git log --pretty=format:"%s" $RANGE | \ grep -vE '^\s*(add|update|fix|change|edit|mod|modify|cleanup|misc|typo|readme|temp|test|debug)\b' | \ grep -vE '^(\s*Update|Add|Fix|Change|Edit|Refactor|Bump|Minor|Misc|Readme|Test)[^a-zA-Z0-9]*$' | \