]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10154 - Add github action to automatically close PRs
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 11 Jan 2024 17:12:40 +0000 (17:12 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 15 Jan 2024 17:19:29 +0000 (17:19 +0000)
GitHub is a mirror, nothing should be opened there for the project.

.github/workflows/close-pull-request.yaml [new file with mode: 0644]

diff --git a/.github/workflows/close-pull-request.yaml b/.github/workflows/close-pull-request.yaml
new file mode 100644 (file)
index 0000000..cc262d1
--- /dev/null
@@ -0,0 +1,14 @@
+name: Close Pull Request
+
+on:
+  pull_request_target:
+    types: [opened]
+
+jobs:
+  run:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: superbrothers/close-pull-request@v3
+      with:
+        # Optional. Post a issue comment just before closing a pull request.
+        comment: "We do not accept PRs. Please use the [OpenLDAP Issue Tracker](https://bugs.openldap.org) to file issues."