[go: up one dir, main page]

Skip to content

๐Ÿ™… GitHub Action to autoclose all Pull Requests

License

Notifications You must be signed in to change notification settings

CodelyTV/no-pull-requests

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ™… 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:

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