From 8531436553d3b3b23cab0555041c74433cc86437 Mon Sep 17 00:00:00 2001 From: tomolld Date: Wed, 24 Jul 2024 23:50:46 +0900 Subject: [PATCH] release-note (#81) --- .github/release-drafter.yml | 61 ++++++++++++++++++++++ .github/workflows/create-release-note.yaml | 23 ++++++++ 2 files changed, 84 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/create-release-note.yaml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..5c233b4e --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,61 @@ +name-template: 'v$RESOLVED_VERSION 🌈' +tag-template: 'v$RESOLVED_VERSION' + +categories: + - title: '🚀 Features' + labels: + - 'feature' + - title: '💪 Enhancement' + labels: + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'bug' + - title: '🧰 Maintenance' + label: 'chore' + - title: '🔧 Refactoring' + label: 'refactor' + - title: '📖 Documentation' + label: 'documentation' + - title: '⛓️ Dependency update' + label: 'dependencies' + +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' + +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. + +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch + +template: | + ## Changes + $CHANGES + +autolabeler: + - label: feature + branch: + - '/^feat(ure)?[/-].+/' + - label: bug + branch: + - '/^fix[/-].+/' + - label: chore + branch: + - '/^chore[/-].+/' + - label: refactor + branch: + - '/(refactor|refactoring)[/-].+/' + - label: documentation + branch: + - '/doc[/-].+/' + - label: enhancement + branch: + - '/(enhancement|improve)[/-].+/' diff --git a/.github/workflows/create-release-note.yaml b/.github/workflows/create-release-note.yaml new file mode 100644 index 00000000..69d1233b --- /dev/null +++ b/.github/workflows/create-release-note.yaml @@ -0,0 +1,23 @@ +name: Create Release Note + +on: + pull_request: + types: + - closed + branches: + - main + +permissions: + contents: read + +jobs: + release: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Create Release Note + uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}