Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧑‍💻 Draft changelog with Release Drafter GitHub Actions #11

Merged
merged 3 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/release-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
label: 'feature'
- title: '🐛 Bug Fixes'
label: 'bug'
- title: '📖 Documentation'
label: 'documentation'
- title: '🧰 Maintenance'
label: 'maintenance'
version-resolver:
minor:
labels:
- 'feature'
default: patch
exclude-labels:
- 'skip-changelog'
category-template: '### $TITLE'
change-template: '* $TITLE ([#$NUMBER]($URL))'
template: |
## Release v$RESOLVED_VERSION (20YY/MM/DD)

### 💫 Highlights

*

$CHANGES

### 🧑‍🤝‍🧑 Contributors

$CONTRIBUTORS
21 changes: 21 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release Drafter

on:
push:
branches:
- main

permissions:
contents: read

jobs:
update_release_draft:
runs-on: ubuntu-22.04
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5.20.0
with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
config-name: release-template.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}