1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

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

This commit is contained in:
Zack Pollard 2024-08-19 20:47:27 +01:00 committed by GitHub
parent d9698884bd
commit 2237b7a399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 7 deletions

14
.github/release.yml vendored
View File

@ -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

View File

@ -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