Make sure a label is added to each PR

This commit is contained in:
Loïc Joly 2024-03-29 10:47:44 +01:00 committed by GitHub
parent a564c1b500
commit 35115fa7ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

20
.github/workflows/ensure_label.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: PR should have a language label
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
add_comment: true
use_regex: true
labels: ".*"
message: "Please add a label with the relevant language(s) to be able to merge this PR"