Skip to content

Commit 6d7c50a

Browse files
authored
feat: added github action to label long pending issues as 'stale' (#239)
added the same GitHub action as in the main repository. Should label old issues as "stale". <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Introduced an automation that regularly identifies inactive issues and pull requests. The system marks items as inactive after a set period and, if unaddressed, closes issues while flagging pull requests. Custom notifications are provided to keep users informed on the status of their contributions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 5e38507 commit 6d7c50a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/stale.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "1 1 * * 1"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 180
16+
days-before-issue-close: 365
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue was marked as stale because it has been open for 6 months with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 1 year since being marked as stale. Feel free to re-open it if you have any further comments."
20+
days-before-pr-stale: 180
21+
days-before-pr-close: -1
22+
stale-pr-message: "This PR was marked as stale because it has been open for 6 months with no activity."
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)