Added GH action to close PRs

This commit is contained in:
Phin 2022-05-23 02:45:12 +05:30
parent 98846bc216
commit 57583955cd
2 changed files with 20 additions and 0 deletions

5
.github/CONTRIBUTING.md vendored Normal file
View file

@ -0,0 +1,5 @@
# Discord Rich Presence for Plex
## Contributing
This repository does not accept pull requests.

View file

@ -0,0 +1,15 @@
name: Close Pull Requests
on:
pull_request_target:
jobs:
close-prs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr comment --repo=${{ github.repository }} ${{ github.event.number }} --body "This repository does not accept pull requests."
gh pr close --repo=${{ github.repository }} ${{ github.event.number }}