Skip to content

Commit 5acd539

Browse files
authored
ci: add stale PR workflow (#169)
Adds the stale PR workflow that we also have in https://github.com/substrait-io/substrait to substrait-python. Signed-off-by: Niels Pardon <par@zurich.ibm.com>
1 parent 3dae077 commit 5acd539

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Close stale PRs'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@v10
15+
with:
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17+
days-before-issue-stale: -1 # don't operate on issues
18+
stale-pr-message: |
19+
This PR has been automatically marked as stale because it has not had
20+
recent activity. It will be closed in 7 days if no further activity occurs.
21+
22+
close-pr-message: |
23+
This PR has been automatically closed due to inactivity.
24+
If you believe this was closed in error, please reopen it.

0 commit comments

Comments
 (0)