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

chore: Add release drafter #169

Merged
merged 2 commits into from
Mar 2, 2021
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
93 changes: 93 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'

category-template: '### $TITLE'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'

version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'feature'
- 'minor'
patch:
labels:
- 'bug'
- 'fix'
- 'chore'
- 'refactor'
- 'performance'
- 'patch'
default: patch

categories:
- title: '💥 Breaking changes'
labels:
- 'breaking'
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '👻 Internal changes'
labels:
- 'refactor'
- title: '🏎 Performance improvements'
labels:
- 'performance'
- title: '🧰 Maintenance'
labels:
- 'chore'

exclude-labels:
- reverted
- no-changelog
- skip-changelog
- invalid
- test

replacers:
# Remove commit prefixes
- search: '/(fix|feat|test|chore|perf|docs)+?(\(\w+\))*?\:\s+/g'
replace: ''

autolabeler:
- label: 'bug'
title:
- '/^fix/i'
- label: 'feature'
title:
- '/^feat/i'
- label: 'test'
title:
- '/^test/i'
- label: 'refactor'
title:
- '/^refactor/i'
- label: 'performance'
title:
- '/^perf/i'
- label: 'chore'
title:
- '/^chore/i'

template: |
We are very proud to release version **$RESOLVED_VERSION** 👩‍🚀

<!-- Optional: add a release summary here -->

## Contributors

Thanks to these the folks that made this release possible 🙇‍♂️

$CONTRIBUTORS

## What's new 👶

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

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}