Browse Source

Enforce PR labels (#6170)

* Enforce PR's to have a valid label for autogenerated change log file.

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
Yogev Ben David 4 years ago
parent
commit
139b5f3130
No account linked to committer's email address
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      .github/workflows/require-label.yml

+ 13
- 0
.github/workflows/require-label.yml View File

@@ -0,0 +1,13 @@
1
+name: Enforce PR label
2
+
3
+on:
4
+  pull_request:
5
+    types: [opened, labeled, unlabeled]
6
+
7
+jobs:
8
+  enforce-label:
9
+    runs-on: ubuntu-latest
10
+    steps:
11
+    - uses: yogevbd/enforce-label-action@2.0.0
12
+      with:
13
+        REQUIRED_LABELS_ANY: "type: accepted/bug,type: accepted/enhancement"