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.
This commit is contained in:
Dariusz L
2025-07-23 22:22:17 +02:00
parent 2997be536d
commit d25ec6b25c
2 changed files with 7 additions and 9 deletions

View File

@@ -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:

View File

@@ -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]*$' | \