summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2023-09-13 14:12:02 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-09-13 18:42:18 +0000
commitc3d7c8536c408a54c7af1486f0beec7a1b0eb0ad (patch)
tree14abe5a9af88788dcf50295f6bec5ece71491bab
parent880c621dc641e3b27233199f6cd3a9438fdf73ab (diff)
downloadgit-repo-c3d7c8536c408a54c7af1486f0beec7a1b0eb0ad.tar.gz
github: add PR closer
We don't accept PRs via GH, so add a job to automatically close them with an explanation for how to submit. Change-Id: I5cc3176549a04ff23b04dae1110cd27a58ba1fd3 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/386134 Tested-by: Mike Frysinger <vapier@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com>
-rw-r--r--.github/workflows/close-pull-request.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/close-pull-request.yml b/.github/workflows/close-pull-request.yml
new file mode 100644
index 00000000..dff055fc
--- /dev/null
+++ b/.github/workflows/close-pull-request.yml
@@ -0,0 +1,22 @@
1# GitHub actions workflow.
2# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
3
4# https://github.com/superbrothers/close-pull-request
5name: Close Pull Request
6
7on:
8 pull_request_target:
9 types: [opened]
10
11jobs:
12 run:
13 runs-on: ubuntu-latest
14 steps:
15 - uses: superbrothers/close-pull-request@v3
16 with:
17 comment: >
18 Thanks for your contribution!
19 Unfortunately, we don't use GitHub pull requests to manage code
20 contributions to this repository.
21 Instead, please see [README.md](../blob/HEAD/SUBMITTING_PATCHES.md)
22 which provides full instructions on how to get involved.