deployment: add release drafter (#398)

This commit is contained in:
Bobby DeSimone 2019-11-25 07:47:40 -08:00 committed by GitHub
parent e5b13a9bf6
commit 4fb8c75a27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

31
.github/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name-template: v$NEXT_MINOR_VERSION
tag-template: v$NEXT_MINOR_VERSION
categories:
- title: New
labels:
- enhancement
- feature
- improvement
- title: Fixed
label: bug
- title: Removed
label: removed
- title: Documentation
label: docs
- title: Depedency
label: depedency
- title: Breaking
label: breaking
exclude-labels:
- no-changelog
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
template: |
<!-- Optional: add a release summary here -->
## Changes
$CHANGES
replacers:
- search: '/CVE-(\d{4})-(\d+)/g'
replace: "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-$1-$2"

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

@ -0,0 +1,16 @@
name: Release Drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: toolmantim/release-drafter@v5.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}