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