From cb3431661164c5209a2d8fc4fa0dbe1fb362b9be Mon Sep 17 00:00:00 2001 From: MJL33 <> Date: Tue, 26 Jan 2021 09:48:17 +0800 Subject: [PATCH] Add release drafter bot --- .github/release-drafter.yml | 18 ++++++++++++++++++ .github/workflows/release-draft.yml | 14 ++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 .github/release-drafter.yml create mode 100755 .github/workflows/release-draft.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100755 index 00000000..c6533353 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,18 @@ +name-template: '$NEXT_MINOR_VERSION' +tag-template: '$NEXT_MINOR_VERSION' +categories: + - title: 'New Features' + labels: + - 'type:new feature' + - title: 'Improvements' + labels: + - 'type:enhancement' + - title: 'Bug Fixes' + labels: + - 'type:bug' + +change-template: '* $TITLE (via #$NUMBER) - @$AUTHOR' +template: | + $CHANGES + ## Links + [Commits since $PREVIOUS_TAG](https://github.com/allure-framework/allure2/compare/$PREVIOUS_TAG...master) \ No newline at end of file diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml new file mode 100755 index 00000000..672fc91a --- /dev/null +++ b/.github/workflows/release-draft.yml @@ -0,0 +1,14 @@ +name: Release Draft + +on: + push: + branches: + - master + +jobs: + update_draft_release: + runs-on: ubuntu-latest + steps: + - uses: toolmantim/release-drafter@v5.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file