From b506ba74543fd3c2731c301f49ca7be70b73ac4c Mon Sep 17 00:00:00 2001 From: Tomoya Otake Date: Sun, 10 May 2020 16:19:12 +0900 Subject: [PATCH] Setup release-drafter (#29) * Setup release-drafter https://github.com/release-drafter/release-drafter * Add name-template and tag-template keys * Set label to renovate * Add categories * Add Titile to template --- .github/release-drafter.yml | 19 +++++++++++++++++++ .github/workflows/release-drafter.yml | 12 ++++++++++++ renovate.json | 1 + 3 files changed, 32 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..6805b5e --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,19 @@ +name-template: 'v$NEXT_PATCH_VERSION' +tag-template: 'v$NEXT_PATCH_VERSION' +template: | + # What's Changed + + $CHANGES +categories: + - title: 'New' + label: 'Type: Feature' + - title: 'Bug Fixes' + label: 'Type: Bug' + - title: 'Maintenance' + label: 'Type: Maintenance' + - title: 'Documentation' + label: 'Type: Documentation' + - title: 'Dependency Updates' + label: 'Type: Dependencies' + - title: 'Breaking Change' + label: 'Type: Breaking Change' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..4000f8c --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,12 @@ +name: Release Drafter +on: + push: + branches: + - master +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/renovate.json b/renovate.json index 637ccc2..e05eaff 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,7 @@ { "extends": ["config:base"], "rangeStrategy": "pin", + "labels": ["Type: Dependencies"], "packageRules": [ { "depTypeList": ["peerDependencies"],