Skip to content

Commit ee9d2b7

Browse files
committed
Add GitHub workflow to clean up stale issues and PRs
1 parent c80eae0 commit ee9d2b7

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/stale.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Stale
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
schedule:
7+
- cron: "0 8 * * *"
8+
workflow_dispatch:
9+
10+
jobs:
11+
stale:
12+
name: 🧹 Clean up stale issues and PRs
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: 🚀 Run stale
16+
uses: actions/stale@v10.1.0
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
days-before-stale: 30
20+
days-before-close: 7
21+
remove-stale-when-updated: true
22+
stale-issue-label: "stale"
23+
exempt-issue-labels: "no-stale,help-wanted"
24+
stale-issue-message: >
25+
There hasn't been any activity on this issue recently, so we
26+
clean up some of the older and inactive issues.
27+
28+
Please make sure to update to the latest version and
29+
check if that solves the issue. Let us know if that works for you
30+
by leaving a comment 👍
31+
32+
This issue has now been marked as stale and will be closed if no
33+
further activity occurs. Thanks!
34+
stale-pr-label: "stale"
35+
exempt-pr-labels: "no-stale"
36+
stale-pr-message: >
37+
There hasn't been any activity on this pull request recently. This
38+
pull request has been automatically marked as stale because of that
39+
and will be closed if no further activity occurs within 7 days.
40+
Thank you for your contributions.

0 commit comments

Comments
 (0)