From ede81d21c653c20d0cff8dacffd016b59081d167 Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Wed, 4 May 2022 08:36:29 -0400 Subject: [PATCH] added workflow to auto-close pull requests 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 --- .github/workflows/nopr.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/nopr.yaml diff --git a/.github/workflows/nopr.yaml b/.github/workflows/nopr.yaml new file mode 100644 index 0000000..d4ab1fb --- /dev/null +++ b/.github/workflows/nopr.yaml @@ -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