Add label enforcer workflow (#178)

This commit is contained in:
Emruz Hossain 2020-12-02 23:32:24 +06:00 committed by GitHub
parent b66863b12c
commit 0e97501057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

13
.github/workflows/enforce-label.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: Enforce Labels
on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]
jobs:
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/enforce-label-action@2.1.0
with:
REQUIRED_LABELS_ANY: "automerge,breaking-change,bug-fix,enhancement,feature,translation"
REQUIRED_LABELS_ANY_DESCRIPTION: "The PR must have at least one these labels: ['automerge','breaking-change','bug-fix','enhancement','feature','translation']"