Skip to content

Commit

Permalink
chore: add release drafter
Browse files Browse the repository at this point in the history
Best practice.
  • Loading branch information
ohlsont committed Nov 11, 2021
1 parent 1ac9be2 commit 3c21628
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚧 Breaking changes"
labels:
- "major-bump"
- title: "🚀 New Features"
labels:
- "feature"
- "enhancement"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧰 Maintenance"
labels:
- "chore"
- "other"
- "dependencies"
- title: "📝 Documentation"
labels:
- "documentation"
version-resolver:
major:
labels:
- "major-bump"
minor:
labels:
- "minor-bump"
- "feature"
patch:
labels:
- "patch-bump"
default: patch
exclude-labels:
- "skip-changelog"
autolabeler:
- label: "chore"
title:
- "/chore/i"
branch:
- '/chore\/.+/'
- '/dependabot\/.+/'
- label: "fix"
title:
- "/fix/i"
branch:
- '/fix\/.+/'
- label: "feature"
title:
- "/feat/i"
branch:
- '/feature\/.+/'
- '/feat\/.+/'
- label: "documentation"
title:
- "/docs/i"
branch:
- '/docs\/.+/'
template: |
# Changes since $PREVIOUS_TAG
$CHANGES
19 changes: 19 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
# Only required for the autolabler
pull_request:
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 }}

0 comments on commit 3c21628

Please sign in to comment.