From a7886d6dc75f171f0b695a7a85525d6c9d15a6a5 Mon Sep 17 00:00:00 2001 From: Gabriele Petronella Date: Thu, 2 May 2024 15:22:21 +0200 Subject: [PATCH] Release drafter --- .github/release-drafter.yml | 32 ++++++++++++++++++++++++++ .github/workflows/release-drafter.yaml | 14 +++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..c16fab8 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,32 @@ +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +template: | + ## What’s Changed + $CHANGES +categories: + - title: "πŸ’₯ Breaking changes" + labels: + - "breaking" + - title: "🐞 Bug fixes" + labels: + - "bug" + - title: "πŸ”§ Dependency updates" + labels: + - "dependencies" + - title: "🧹 Chores" + labels: + - "chore" + - title: "πŸ“š Documentation" + labels: + - "documentation" +version-resolver: + minor: + labels: + - "breaking" + default: patch +replacers: + - search: "@renovate" + replace: "@renovate-bot" + # NOTE(gabro): this is to remove the redundant issue number added by hophop in the PR title + - search: '/\* #\d+: (.+)/g' + replace: "* $1" diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 0000000..896edaf --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,14 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}