Procházet zdrojové kódy

Add label enforcer workflow (#178)

Emruz Hossain před 4 roky
rodič
revize
0e97501057
1 změnil soubory, kde provedl 13 přidání a 0 odebrání
  1. 13 0
      .github/workflows/enforce-label.yml

+ 13 - 0
.github/workflows/enforce-label.yml

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