Skip to content

Commit

Permalink
added workflow to auto-close pull requests
Browse files Browse the repository at this point in the history
while I appreciate the effort and enthusiasm, this is a hobby project and I don't want to get bogged down in admin tasks so I do not accept pull requests
  • Loading branch information
Shaun Inman committed May 4, 2022
1 parent 91da5a2 commit ede81d2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/nopr.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ede81d2

Please sign in to comment.