From 54594cbe619edc72d4a11d1bc8de0a2c955896ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Werner?= Date: Thu, 8 Sep 2022 11:25:07 +0200 Subject: [PATCH] add release-drafter --- .github/release-drafter.yml | 96 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 29 ++++++++ 2 files changed, 125 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 0000000..71428b7 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,96 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '๐Ÿš€ New' + labels: + - 'โœ๏ธ Feature' + - title: '๐Ÿงน Updates' + labels: + - '๐Ÿงน Updates' + - '๐Ÿค– Dependencies' + - title: '๐Ÿ› Fixes' + labels: + - 'โ˜ข๏ธ Bug' + - title: '๐Ÿ“š Documentation' + labels: + - '๐Ÿ“’ Documentation' +change-template: '- $TITLE (#$NUMBER)' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +sort-by: 'title' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + - 'โœ๏ธ Feature' + patch: + labels: + - 'patch' + - '๐Ÿ“’ Documentation' + - 'โ˜ข๏ธ Bug' + - '๐Ÿค– Dependencies' + - '๐Ÿงน Updates' + default: patch +autolabeler: + - label: '๐Ÿ“’ Documentation' + title: + - '/docs/i' + - '/doc:/i' + - '/\[doc\]/i' + - '/README/i' + - '/typos/i' + - '/comment/i' + - '/๐Ÿ“š/i' + - '/๐Ÿ“’/i' + - '/๐Ÿ“/i' + - '/documentation/i' + - label: 'โ˜ข๏ธ Bug' + title: + - '/fix/i' + - '/race/i' + - '/bug/i' + - '/missing/i' + - '/correct/i' + - '/๐Ÿ›/i' + - '/โ˜ข/i' + - '/๐Ÿฉน/i' + - '/๐Ÿšจ/i' + - label: '๐Ÿงน Updates' + title: + - '/improve/i' + - '/update/i' + - '/refactor/i' + - '/deprecated/i' + - '/remove/i' + - '/unused/i' + - '/test/i' + - '/โšก/i' + - '/๐Ÿ‘ท/i' + - '/๐Ÿšง/i' + - '/โ™ป๏ธ/i' + - '/๐ŸŽจ/i' + - '/๐Ÿงช/i' + - '/๐Ÿงน/i' + - label: '๐Ÿค– Dependencies' + title: + - '/bumb/i' + - '/dependencies/i' + - '/๐Ÿ“ฆ/i' + - '/๐Ÿค–/i' + - label: 'โœ๏ธ Feature' + title: + - '/feature/i' + - '/create/i' + - '/implement/i' + - '/add/i' + - '/๐Ÿš€/i' + - '/โœจ/i' + - '/๐Ÿ”ฅ/i' +template: | + $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION + + Thank you $CONTRIBUTORS for making this update possible. diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..1669279 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,29 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # (Optional) GitHub Enterprise requires GHE_HOST variable set + #- name: Set GHE_HOST + # run: | + # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV + + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + # with: + # config-name: my-config.yml + # disable-autolabeler: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}