Skip to content

High performance self-hosted photo and video management solution.

chore: validate every PR has a changelog related label (#11909)

Zack Pollard2237b7a399c6
diff --git a/.github/release.yml b/.github/release.yml
index 4463555deb..1d9764194c 100644
--- a/.github/release.yml
+++ b/.github/release.yml
@@ -2,28 +2,28 @@ changelog:
categories:
- title: 🚨 Breaking Changes
labels:
- - breaking-change
+ - changelog:breaking-change
- title: πŸ”’ Security
labels:
- - security
+ - changelog:security
- title: πŸš€ Features
labels:
- - feature
+ - changelog:feature
- title: 🌟 Enhancements
labels:
- - enhancement
+ - changelog:enhancement
- title: πŸ› Bug fixes
labels:
- - bugfix
+ - changelog:bugfix
- title: πŸ“š Documentation
labels:
- - documentation
+ - changelog:documentation
- title: 🌐 Translations
labels:
- - translation
+ - changelog:translation
diff --git a/.github/workflows/pr-label-validation.yml b/.github/workflows/pr-label-validation.yml
new file mode 100644
index 0000000000..510995aa54
--- /dev/null
+++ b/.github/workflows/pr-label-validation.yml
@@ -0,0 +1,18 @@
+name: PR Label Validation
+
+on:
+ pull_request:
+ types: [opened, labeled, unlabeled, synchronize]
+
+jobs:
+ validate-release-label:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Require PR to have a changelog label
+ uses: mheap/github-action-required-labels@v5
+ with:
+ mode: exactly
+ count: 1
+ use_regex: true
+ labels: "changelog:.*"
+ add_comment: true