We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f34ad commit f2fc35fCopy full SHA for f2fc35f
1 file changed
.github/workflows/autoclose.yaml
@@ -4,15 +4,17 @@ permissions:
4
pull-requests: write
5
6
on:
7
- pull_request_target:
8
- types: [opened, synchronize, reopened]
+ schedule:
+ - cron: '0 * * * *'
9
10
jobs:
11
run:
12
runs-on: ubuntu-latest
13
steps:
14
- - name: Close Pull
15
- run: gh pr close --comment "$COMMENT"
+ - name: Close Pull Requests
+ run: >
16
+ gh pr list --json number --jq .[].number
17
+ | xargs -L1 gh pr close --comment "$COMMENT"
18
env:
19
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
COMMENT: >
0 commit comments