workflows: Migrate repo-lockdown to GitHub Actions
authorTom Stellard <tstellar@redhat.com>
Mon, 18 Oct 2021 21:18:17 +0000 (14:18 -0700)
committerTom Stellard <tstellar@redhat.com>
Mon, 18 Oct 2021 21:22:49 +0000 (14:22 -0700)
https://github.com/dessant/repo-lockdown/issues/6

.github/lockdown.yml [deleted file]
.github/workflows/repo-lockdown.yml [new file with mode: 0644]

diff --git a/.github/lockdown.yml b/.github/lockdown.yml
deleted file mode 100644 (file)
index e0ef850..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown
-
-skipCreatedBefore: "2020-03-21"
-
-pulls:
-  comment: >
-    This repository does not accept pull requests.
-    Please follow http://llvm.org/docs/Contributing.html#how-to-submit-a-patch for contribution to LLVM.
diff --git a/.github/workflows/repo-lockdown.yml b/.github/workflows/repo-lockdown.yml
new file mode 100644 (file)
index 0000000..ee7c1d8
--- /dev/null
@@ -0,0 +1,15 @@
+name: 'Repo Lockdown'
+on:
+  pull_request_target:
+    types: opened
+
+permissions:
+  pull-requests: write
+
+jobs:
+  action:
+    runs-on: ubuntu-lastest
+    steps:
+      - uses: dessant/repo-lockdown@v2
+        with:
+          process-only: 'prs'