mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-21 17:13:04 +00:00
Added GH action to close PRs
This commit is contained in:
parent
98846bc216
commit
57583955cd
2 changed files with 20 additions and 0 deletions
5
.github/CONTRIBUTING.md
vendored
Normal file
5
.github/CONTRIBUTING.md
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Discord Rich Presence for Plex
|
||||
|
||||
## Contributing
|
||||
|
||||
This repository does not accept pull requests.
|
15
.github/workflows/close-pull-requests.yml
vendored
Normal file
15
.github/workflows/close-pull-requests.yml
vendored
Normal 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 }}
|
Loading…
Reference in a new issue