From 258ea7dd237c7280878b950498ecd53f664fa0ab Mon Sep 17 00:00:00 2001 From: Ryo Miyajima Date: Wed, 2 Feb 2022 15:34:20 +0900 Subject: [PATCH 1/3] add release drafter --- .github/workflows/release-drafter.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..a1f1f5b --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,16 @@ +name: Release Drafter + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + From 63d803682520d0b4f24cf431979d3f3503f37891 Mon Sep 17 00:00:00 2001 From: Ryo Miyajima Date: Wed, 2 Feb 2022 15:37:09 +0900 Subject: [PATCH 2/3] use main branch --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a1f1f5b..3ff1553 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -3,7 +3,7 @@ name: Release Drafter on: push: branches: - - master + - main pull_request: types: [opened, reopened, synchronize] jobs: From a19205a666c2ddb18669f07fbaf5714504a650d9 Mon Sep 17 00:00:00 2001 From: Ryo Miyajima Date: Wed, 2 Feb 2022 15:37:54 +0900 Subject: [PATCH 3/3] add template --- .github/release-drafter.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..0b75eeb --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,20 @@ +name-template: 'pysen $NEXT_PATCH_VERSION' +tag-template: '$NEXT_PATCH_VERSION' +categories: +- title: '💣 Breaking Changes (CLI)' + label: 'no-compat-cli' +- title: '💣 Breaking Changes (TOML Configuration)' + label: 'no-compat-toml' +- title: '💣 Breaking Changes (Python API)' + label: 'no-compat-py' +- title: '🚀 Features' + label: 'feature' +- title: '🐛 Bug Fixes' + label: 'bug' +- title: '📜 Documentation' + label: 'documentation' +- title: '🧰 Maintenance' + label: 'chore' +prerelease: true +template: | + $CHANGES