name: Auto-close PR on: pull_request_target: types: [opened, reopened] jobs: close: name: Run runs-on: ubuntu-latest permissions: pull-requests: write steps: - run: | gh pr close ${{ github.event.pull_request.number }} --comment \ "At the moment we are not accepting contributions to the repository. Feedback for Copilot.vim can be given in the [feedback forum](https://github.com/github/copilot.vim/issues)." env: GH_REPO: ${{ github.repository }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}