Skip to content

Commit

Permalink
Merge pull request #229 from e-picsa/refactor/release-drafter-template
Browse files Browse the repository at this point in the history
Refactor/release drafter template
  • Loading branch information
chrismclarke authored Feb 1, 2024
2 parents fc849c0 + 5cad7c5 commit cdce03d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .github/workflows/gh-release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit cdce03d

Please sign in to comment.