From 208e411e8e47ba91bb4bae8cd12ea341761dd3ac Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:48:16 +1000 Subject: [PATCH 1/3] Add pull request config to release-drafter --- .github/workflows/release-drafter.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1c8f998c904..10fd8a7285e 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -5,6 +5,12 @@ on: push: branches: - mealie-next + # pull_request event is required for autolabeler + pull_request: + types: [opened, labeled, unlabeled, reopened, synchronize] + # pull_request_target event is required for autolabeler to support PRs from forks + pull_request_target: + types: [opened, labeled, unlabeled, reopened, synchronize] workflow_dispatch: jobs: @@ -12,6 +18,9 @@ jobs: permissions: # write permission is required to create a github release contents: write + # write permission is required for autolabeler + # otherwise, read permission is required at least + pull-requests: write name: ✏️ Draft release runs-on: ubuntu-latest steps: From 46b2a739dad45c388fde8b79fb9b1e71967db0d1 Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:50:04 +1000 Subject: [PATCH 2/3] Remove some emojis to shorten line --- .github/release-drafter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index b20f603c8d9..244ffbdb9e4 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -50,8 +50,8 @@ version-resolver: default: patch template: | - # 🍴🍴🍴🍴🍴🍴🍴🍴🍴🍴 + # 🍴🍴🍴🍴🍴🍴 $CHANGES - # 🍴🍴🍴🍴🍴🍴🍴🍴🍴🍴 + # 🍴🍴🍴🍴🍴🍴 From e58abfc3810a3a9bff07ed9dcbb630c0dbef9e95 Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:54:55 +1000 Subject: [PATCH 3/3] Add autolabeler config --- .github/release-drafter.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 244ffbdb9e4..1801337a5a9 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -55,3 +55,17 @@ template: | $CHANGES # 🍴🍴🍴🍴🍴🍴 + +autolabeler: + - label: 'feature' + title: + - '/feat/i' + - label: 'bugfix' + title: + - '/fix/i' + - label: 'documentation' + title: + - '/docs/i' + - label: 'chore' + title: + - '/chore/i'