From 3fc22a4df848528b83900086d3d571e19856b721 Mon Sep 17 00:00:00 2001 From: linyq Date: Mon, 18 Nov 2024 15:18:44 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B5=8B=E8=AF=95=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release-drafter.yml | 47 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 22 +++++++++++++ 2 files changed, 69 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..d340320 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,47 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 新功能' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug 修复' + labels: + - 'fix' + - 'bug' + - title: '🧰 维护' + labels: + - 'chore' + - 'maintenance' + - title: '📚 文档' + labels: + - 'docs' + - 'documentation' + +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' + +version-resolver: + major: + labels: + - 'major' + - 'breaking' + minor: + labels: + - 'minor' + - 'feature' + patch: + labels: + - 'patch' + - 'fix' + - 'bug' + - 'maintenance' + default: patch + +template: | + ## 更新内容 + + $CHANGES + + ## 贡献者 + + $CONTRIBUTORS \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..2278cff --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,22 @@ +name: Release Drafter + +on: + push: + branches: + - main + pull_request: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} \ No newline at end of file