From 72272ba8baa435c50a6b2f4f5f1ff5500c462228 Mon Sep 17 00:00:00 2001 From: Charles T Date: Thu, 7 Jan 2021 16:19:28 +0100 Subject: [PATCH] ci: add release drafter --- .github/release-drafter.yml | 36 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 19 ++++++++++++++ 2 files changed, 55 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 00000000..795948e7 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,36 @@ +name-template: 'v$RESOLVED_VERSION 🌈' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'Type: Feature' + - 'Type: Performance' + - title: '🐛 Bug Fixes' + labels: + - 'Type: Fix' + - title: '📚 Documentation' + label: 'Type: Documentation' + - title: '🧰 Maintenance' + label: + - 'Type: Maintenance' + - 'Type: Build' + - 'Type: Refactoring' +change-template: '- $TITLE @$AUTHOR (#$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 +exclude-labels: + - 'skip-changelog' +template: | + ## Changes + + $CHANGES \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000..c6c66bf7 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,19 @@ +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: release-drafter/release-drafter@v5 + with: + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + # config-name: my-config.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file