From 58dd6f5c0f51cb36e767ea9993863ac4f240cf1b Mon Sep 17 00:00:00 2001 From: Matteo Ruina Date: Wed, 28 Apr 2021 10:25:34 +0200 Subject: [PATCH 1/2] Add support for release drafter --- .github/release-drafter.yml | 4 ++++ .github/workflows/dependabot.yml | 7 +++++++ .github/workflows/release-drafter.yml | 16 ++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/dependabot.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 0000000..27bcee3 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,4 @@ +template: | + ## What’s Changed + + $CHANGES diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..2c7d170 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..4ddf5a2 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,16 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "main" + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 428722ad90fd6de0ab7c6d886f4df209ba2ed82a Mon Sep 17 00:00:00 2001 From: Matteo Ruina Date: Wed, 28 Apr 2021 12:21:54 +0200 Subject: [PATCH 2/2] Cooler template --- .github/release-drafter.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 27bcee3..c42b8ad 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,4 +1,28 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'documentation' + - 'bug' + - title: '💬 Comments & Reviews' + labels: + - 'comment' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch template: | - ## What’s Changed + ## Changes $CHANGES