Skip to content

Commit

Permalink
Implement Release Drafter workflow (#30)
Browse files Browse the repository at this point in the history
* Create release-drafter.yml

* Add Release Drafter config
  • Loading branch information
0237h authored Oct 20, 2023
1 parent 3f4c52f commit bf3067e
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '✨ Features'
labels:
- 'feature'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '📝 Documentation'
labels:
- 'documentation'
- title: '🔧 Operations'
label: 'ops'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
autolabeler:
- label: 'documentation'
files:
- '*.md'
- label: 'bug'
branch:
- '/fix\/.+/'
- label: 'feature'
branch:
- '/feature\/.+/'
- label: 'ops'
files:
- '.github/*.yml'
- '.github/workflows/*.yml'
- '.gitignore'
- 'tsconfig.json'
- 'Dockerfile'
22 changes: 22 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bf3067e

Please sign in to comment.