github: add action to automatically close pull requests.

Change-Id: Icb1164879c9bd0a48aad21d7a42cba79ab195677
Reviewed-on: https://code.wireshark.org/review/36353
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Dario Lombardo 2020-03-09 21:32:48 +01:00 committed by Peter Wu
parent e3f6dd4af3
commit b7f38efb78
1 changed files with 22 additions and 0 deletions

22
.github/workflows/close_pr.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Close Pull Requests
on:
pull_request:
types: [opened]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v2
with:
# Optional. Post a issue comment just before closing a pull request.
comment: |
Hi, thank you for your contribution!
Github is however not the right place for these, please have a look at
https://www.wireshark.org/docs/wsdg_html_chunked/ChSrcContribute.html
for further instructions.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}