Skip to content

Commit

Permalink
Add release-drafter (chartjs#233)
Browse files Browse the repository at this point in the history
* Add release-drafter

* Run on v2 branch too
  • Loading branch information
kurkle authored Oct 23, 2020
1 parent e6ecc3f commit ecae425
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'Breaking Changes'
labels:
- 'breaking change'
- title: 'Enhancements'
labels:
- 'enhancement'
- title: 'Bugs Fixed'
labels:
- 'bug'
- title: 'Types'
labels:
- 'types'
- title: 'Documentation'
labels:
- 'documentation'
- title: 'Development'
labels:
- 'chore'
exclude-labels:
- 'infrastructure'
change-template: '- #$NUMBER $TITLE'
change-title-escapes: '\<*_&`#@'
version-resolver:
major:
labels:
- 'breaking change'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'bug'
- 'chore'
- 'types'
default: patch
template: |
# Essential Links
* [npm](https://www.npmjs.com/package/chartjs-plugin-annotation)
$CHANGES
Thanks to $CONTRIBUTORS
23 changes: 23 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Drafter

on:
push:
branches:
- master
- v2

jobs:
correct_repository:
runs-on: ubuntu-latest
steps:
- name: fail on fork
if: github.repository_owner != 'chartjs'
run: exit 1

update_release_draft:
needs: correct_repository
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ecae425

Please sign in to comment.