autoclose pull requests
This commit is contained in:
parent
d06310c9ec
commit
1b93c7a9af
1 changed files with 16 additions and 0 deletions
16
.github/workflows/nopr.yaml
vendored
Normal file
16
.github/workflows/nopr.yaml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue