Useful if you do trunk-based development
or master-only git flow
Create a file named close-pr.yml
inside the .github/workflows
directory and paste:
name: PR Closer
on:
pull_request:
types: [opened, reopened]
jobs:
close-pull-request:
runs-on: ubuntu-latest
name: Close Pull Request
steps:
- uses: codelytv/no-pull-requests@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: ๐
We don't accept Pull Requests!