Skip to content

Commit 298f9aa

Browse files
bilelmoussaouibarthalion
authored andcommitted
Actions: add stale to auto close old stalled PR
1 parent a1cfebd commit 298f9aa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/stale.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Close stale PR"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v1
11+
with:
12+
repo-token: ${{ secrets.FLATHUBBOT_TOKEN }}
13+
stale-pr-message: "This PR hasn't received any updates in a year and will be automatically closed in 14 days. Feel free to re-open it if you plan to continue working on that pull request or think it deserves attention from Flathub admins"
14+
days-before-stale: 365
15+
days-before-close: 14

0 commit comments

Comments
 (0)