diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index e582179e4..ba88b998d 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -18,10 +18,21 @@ categories: { title: '🟫Core Maintenance', labels: ['maintenance'] }, ] change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +category-template: '### $TITLE' # Replace initial category, e.g. feat: or fix(budget): replacers: - - search: '/^([a-z()]*):$/gim' - replace: '' + # Remove inner semantic context, e.g. feat(budget): -> feat: (as already under budget heading) + - search: '/\([a-z()-]*\):/gim' + replace: ':' + # Prefer lower case prefixes + - search: 'Feat' + replace: 'feat' + - search: 'Fix' + replace: 'fix' + - search: 'Refactor' + replace: 'refactor' + - search: 'Chore' + replace: 'chore' template: | ## What's Changed $CHANGES diff --git a/.github/workflows/gh-release-drafter.yml b/.github/workflows/gh-release-drafter.yml index e7ae5d09d..6ad78db7b 100644 --- a/.github/workflows/gh-release-drafter.yml +++ b/.github/workflows/gh-release-drafter.yml @@ -19,6 +19,7 @@ jobs: - name: check_version run: echo "version $env.APP_VERSION" # Drafts your next Release notes as Pull Requests are merged into "main" + # https://github.com/release-drafter/release-drafter - uses: release-drafter/release-drafter@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}