From 999d6075a080ca0b4097c3302023f91f34ed1a8d Mon Sep 17 00:00:00 2001 From: Zihua Li Date: Mon, 13 May 2024 10:24:38 +0800 Subject: [PATCH] Use labels for changelog generating (#4198) --- .github/release.yml | 17 +++++++++++++++++ .github/workflows/label.yml | 23 +++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/release.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000000..839f68ee84 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,17 @@ +changelog: + exclude: + authors: + - quill-bot + categories: + - title: Bug Fixes 🛠 + labels: + - change:bugfix + - title: New Features 🎉 + labels: + - change:feature + - title: Documentation 📚 + labels: + - change:documentation + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000..26ee060b16 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,23 @@ +name: Pull Requests + +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] + +jobs: + label: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: mheap/github-action-required-labels@v5 + with: + mode: exactly + count: 1 + labels: | + change:bugfix + change:feature + change:documentation + change:chore + add_comment: false