From 81a82e89eea08b0197b67ce5d324207637f87f45 Mon Sep 17 00:00:00 2001 From: chyroc Date: Tue, 8 Oct 2024 10:30:08 +0800 Subject: [PATCH] chore: Update automated release configuration --- .github/release-drafter.yml | 12 +++++++----- .github/workflows/required-labels.yml | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/required-labels.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index a8a2fb9..ddb8622 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,17 +1,19 @@ name-template: 'v$RESOLVED_VERSION' tag-template: 'v$RESOLVED_VERSION' categories: - - title: 'Features' + - title: '🚀 Features' labels: - 'feature' - 'enhancement' - - title: 'Bug Fixes' + - title: '🐛 Bug Fixes' labels: - 'fix' - 'bugfix' - 'bug' - - title: 'Maintenance' - label: 'chore' + - title: '🧰 Maintenance' + labels: + - 'chore' + - 'documentation' autolabeler: - label: 'chore' files: @@ -38,7 +40,7 @@ version-resolver: patch: labels: - 'patch' - default: minor + default: patch template: | ## Changes diff --git a/.github/workflows/required-labels.yml b/.github/workflows/required-labels.yml new file mode 100644 index 0000000..c0329e0 --- /dev/null +++ b/.github/workflows/required-labels.yml @@ -0,0 +1,25 @@ +name: Required Labels +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: minimum + count: 1 + labels: | + feature + enhancement + fix + bugfix + bug + chore + documentation + add_comment: true + message: "Requires label: feature, enhancement, fix, bugfix, bug, chore, documentation." \ No newline at end of file