]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
CI: Do not allow merge if labelled DO-NOT-MERGE (#103337)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Sun, 9 Apr 2023 06:39:03 +0000 (09:39 +0300)
committerGitHub <noreply@github.com>
Sun, 9 Apr 2023 06:39:03 +0000 (09:39 +0300)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
.github/workflows/require-pr-label.yml [new file with mode: 0644]

diff --git a/.github/workflows/require-pr-label.yml b/.github/workflows/require-pr-label.yml
new file mode 100644 (file)
index 0000000..e847bae
--- /dev/null
@@ -0,0 +1,17 @@
+name: Check labels
+
+on:
+  pull_request:
+    types: [opened, reopened, labeled, unlabeled, synchronize]
+
+jobs:
+  label:
+    name: DO-NOT-MERGE
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: mheap/github-action-required-labels@v4
+        with:
+          mode: exactly
+          count: 0
+          labels: "DO-NOT-MERGE"