From 8d5249f7bbfc822e9862b1a336294c91908e9c90 Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Tue, 13 Oct 2020 22:34:47 +0300 Subject: [PATCH] Add release-drafter (#7878) * Add release-drafter * Review feedback --- .github/release-drafter.yml | 53 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 14 +++++++ 2 files changed, 67 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..169cb9f27 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,53 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '# Breaking Changes' + labels: + - 'breaking change' + - title: '# Enhancements' + labels: + - 'type: enhancement' + - title: '# Performance' + labels: + - 'type: performance' + - title: '# Bugs Fixed' + labels: + - 'type: bug' + - title: '# Types' + labels: + - 'type: types' + - title: '# Documentation' + labels: + - 'type: documentation' + - title: '# Development' + labels: + - 'type: chore' +change-template: '- #$NUMBER $TITLE' +change-title-escapes: '\<*_&`#@' +version-resolver: + major: + labels: + - 'breaking change' + minor: + labels: + - 'type: enhancement' + patch: + labels: + - 'type: bug' + - 'type: chore' + - 'type: types' + default: patch +template: | + # Essential Links + + * [npm](https://www.npmjs.com/package/chart.js) + * [Migration guide](https://www.chartjs.org/docs/next/getting-started/v3-migration) + * [Docs](https://www.chartjs.org/docs/next/) + * [API](https://www.chartjs.org/docs/next/typedoc/) + * [Samples](https://www.chartjs.org/samples/next/) + + ## Changes + + $CHANGES + + Thanks to $CONTRIBUTORS diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 000000000..23bd2b93e --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,14 @@ +name: Release Drafter + +on: + push: + branches: + - next + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}