Add label enforcer workflow

This commit is contained in:
Emruz Hossain 2020-12-02 23:28:50 +06:00
parent b66863b12c
commit c57a093d42

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']"