├── .github └── workflows │ └── noshirt.yml └── README.md /.github/workflows/noshirt.yml: -------------------------------------------------------------------------------- 1 | name: No T-Shirts for you! 2 | 3 | on: 4 | pull_request: 5 | types: [ labeled ] 6 | 7 | jobs: 8 | build: 9 | if: ${{ github.event.label.name == 'invalid' }} 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: superbrothers/close-pull-request@v2 14 | with: 15 | comment: "You will never get that T-Shirt! 👕🚫" 16 | env: 17 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 18 | - uses: "jessfraz/branch-cleanup-action@master" 19 | env: 20 | NO_BRANCH_DELETED_EXIT_CODE: 0 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hacktoberfix! 2 | 3 | _You will never get that T-shirt!_ 4 | 5 | Dear OSS Maintainers, 6 | 7 | Tired of closing and commenting on PRs this October after marking them as invalid? Have this simple action do it for you! 8 | 9 | See what happens at https://github.com/SanketDG/hacktoberfix/pull/1 10 | 11 | Create a `noshirt.yml` in `.github/workflows`: 12 | 13 | ```yml 14 | name: No T-Shirts for you! 15 | 16 | on: 17 | pull_request: 18 | types: [ labeled ] 19 | 20 | jobs: 21 | build: 22 | if: ${{ github.event.label.name == 'invalid' }} 23 | runs-on: ubuntu-latest 24 | 25 | steps: 26 | - uses: superbrothers/close-pull-request@v2 27 | with: 28 | # You can be more rude if you want to. 29 | comment: "You will never get that T-Shirt! 👕🚫" 30 | env: 31 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 32 | - uses: "jessfraz/branch-cleanup-action@master" 33 | env: 34 | NO_BRANCH_DELETED_EXIT_CODE: 0 35 | 36 | ``` 37 | --------------------------------------------------------------------------------