diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 52cdd8fa..7366e78c 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,5 +1,6 @@ name-template: '$RESOLVED_VERSION' tag-template: '$RESOLVED_VERSION' +tag-prefix: "" categories: - title: '🚀 Features' labels: @@ -10,8 +11,10 @@ categories: - 'fix' - 'bugfix' - 'bug' - - title: '🧰 Maintenance' - label: 'chore' + - title: '📚 Documentation' + label: 'documentation' + - title: '🔒 Security' + label: 'security' change-template: '- $TITLE @$AUTHOR (#$NUMBER)' template: | ## Changes @@ -20,4 +23,38 @@ template: | ## Contributors - $CONTRIBUTORS \ No newline at end of file + $CONTRIBUTORS + +change-title-escapes: '\<*_&"''' +autolabeler: + - label: 'documentation' + files: + - '*.md' + branch: + - '/docs{0,1}\/.+/' + - label: 'bug' + branch: + - '/fix\/.+/' + title: + - '/fix/i' + - label: 'enhancement' + branch: + - '/feature\/.+/' + body: + - '/[A-Z]+-[0-9]+/' + - label: 'documentation' + files: + - '**/*.md' + - 'docs/**/*' + - label: 'security' + branch: + - '/security\/.+/' +replacers: + - search: /"/g + replace: '' + - search: /'/g + replace: '' + - search: /`/g + replace: '' +exclude-labels: + - 'skip-changelog' \ No newline at end of file diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 5fdba7c7..5e4b139e 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -33,15 +33,6 @@ jobs: with: config-name: release-drafter.yml version: ${{ env.version }} - version-template: '$YEAR.$MONTH.$DAY' - - - name: Prepare Release Body - id: prepare_body - run: | - new_changes="${{ steps.generate_notes.outputs.body }}" - echo "body<> $GITHUB_OUTPUT - echo "$new_changes" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT - name: Create and Upload Release id: create_release @@ -50,7 +41,7 @@ jobs: tag_name: ${{ env.version }} name: Pre-Release ${{ env.version }} body: | - ${{ steps.prepare_body.outputs.body }} + ${{ steps.generate_notes.outputs.body }} ![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil) append_body: false