Adding release drafter Github action to automate creation of release notes

This commit is contained in:
Arpit Mohan 2020-11-12 23:31:54 +05:30
parent 955f80925f
commit 943bf6e2c4
2 changed files with 46 additions and 0 deletions

28
.github/release-drafter-template.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'Enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'Bug'
- title: '📙 Documentation'
label: 'Documentation'
change-template: '- $TITLE (#$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: |
## What's new?
$CHANGES

18
.github/workflows/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Release Drafter
on:
push:
branches:
- master
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
with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
config-name: release-drafter-template.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}