Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codelytv/no-pull-requests

🙅 GitHub Action to autoclose all Pull Requests
https://github.com/codelytv/no-pull-requests

actions github github-action github-actions pull-request-action pull-requests

Last synced: 4 days ago
JSON representation

🙅 GitHub Action to autoclose all Pull Requests

Awesome Lists containing this project

README

        






🙅 No Pull Requests


codely.tv
CodelyTV Courses
GitHub Action version


Useful if you do trunk-based development or master-only git flow

## 🚀 Usage

Create a file named `close-pr.yml` inside the `.github/workflows` directory and paste:

```yml
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!
```

## ⚖️ License

[MIT](LICENSE)