GitHub: Migrate Repo Lockdown to an action.

Repo Lockdown started out as a GitHub app[1], but has since been
migrated to an action[2]. Update our config to match. Fixes #17692.

[1] https://github.com/apps/repo-lockdown
[2] https://github.com/dessant/repo-lockdown
This commit is contained in:
Gerald Combs 2021-10-29 11:09:06 -07:00 committed by Wireshark GitLab Utility
parent 16779dc43e
commit 77541af2df
1 changed files with 23 additions and 7 deletions

30
.github/lockdown.yml vendored
View File

@ -1,10 +1,26 @@
# Configure the Repo Lockdown GitHub App to automatically close pull requests.
# See https://github.com/apps/repo-lockdown
# See https://github.com/dessant/repo-lockdown
pulls:
comment: |
Hi, thank you for your contribution!
name: 'Repo Lockdown'
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.
on:
pull_request_target:
types: opened
schedule:
- cron: '7 * * * *'
permissions:
pull-requests: write
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@v2
with:
pr-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.