Skip to content

Commit

Permalink
Add release drafter action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenskeiner committed Aug 15, 2024
1 parent 3f0a80c commit 80628a8
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name-template: '$NEXT_PATCH_VERSION'
tag-template: '$NEXT_PATCH_VERSION'
categories:
- title: 'Added'
labels:
- 'new feature'
- title: 'Changed'
labels:
- 'enhancement'
- title: 'Deprecated'
labels:
- 'deprecation'
- title: 'Removed'
labels:
- 'removal'
- title: 'Fixed'
labels:
- 'bug'
- title: 'Security'
labels:
- 'security'
template: |
# What’s Changed
$CHANGES
24 changes: 24 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Draft Release

on:
push:
branches:
- develop

jobs:
draft-release-publish:
name: Draft a new release
permissions:
# write permission is required to create a GitHub release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 80628a8

Please sign in to comment.