Create nopr.yaml

This commit is contained in:
Shaun Inman 2023-02-28 22:04:46 -05:00 committed by GitHub
parent f5ca1e88d4
commit e4cbd276fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
.github/workflows/nopr.yaml vendored Normal file
View file

@ -0,0 +1,16 @@
on:
pull_request:
workflow_dispatch:
jobs:
close:
name: Close Pull Request
runs-on: ubuntu-latest
steps:
- name: Close Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Find all open PRs, and close them.
gh pr list --repo=${{ github.repository }} --state=open --json=number | jq '.[].number' | xargs gh pr close --repo=${{ github.repository }} -d