misc: Auto close PRs to GitHub mirror 16/35716/1
authorEd Warnicke <hagbard@gmail.com>
Fri, 18 Mar 2022 17:26:04 +0000 (12:26 -0500)
committerEd Warnicke <hagbard@gmail.com>
Fri, 18 Mar 2022 17:26:04 +0000 (12:26 -0500)
Introduce a GitHub Action to auto close PRs submitted via GitHub
Will add a helpful comment to point folks towards gerrit.

Type: feature

Signed-off-by: Ed Warnicke <hagbard@gmail.com>
Change-Id: I3c4a2590d4e38edd1061e65e800cfdb124c43866

.github/workflows/close_prs.yml [new file with mode: 0644]

diff --git a/.github/workflows/close_prs.yml b/.github/workflows/close_prs.yml
new file mode 100644 (file)
index 0000000..f8abc37
--- /dev/null
@@ -0,0 +1,21 @@
+---
+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: "Thank you so much for your interest!  VPP takes patches at https://gerrit.fd.io/
+
+```
+git clone https://gerrit.fd.io/r/vpp
+```
+
+Using [git review](https://www.mediawiki.org/wiki/Gerrit/git-review) to contribute patches is recommended"