diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..652aaf3 --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,5 @@ +# Discord Rich Presence for Plex + +## Contributing + +This repository does not accept pull requests. diff --git a/.github/workflows/close-pull-requests.yml b/.github/workflows/close-pull-requests.yml new file mode 100644 index 0000000..f7d0eb8 --- /dev/null +++ b/.github/workflows/close-pull-requests.yml @@ -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 }}