Skip to content

Commit e9c621f

Browse files
lyq10085ZwwWayne
authored andcommitted
Add .github/workflow/stale.yml (#8445)
* Add .github/workflow/stale.yml * modify prompt message in stale.yml * modify check strategy now, issues and prs with any of 'invalid', 'awaiting response' will be checked
1 parent e62c01f commit e9c621f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Close stale issues and PRs'
2+
3+
on:
4+
schedule:
5+
# check issue and pull request once every day
6+
- cron: '25 11 * * *'
7+
8+
jobs:
9+
invalid-stale-close:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v4
13+
with:
14+
stale-issue-message: 'This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 5 days if the stale label is not removed or if there is no further response.'
15+
stale-pr-message: 'This PR is marked as stale because there has been no activity in the past 45 days. It will be closed in 10 days if the stale label is not removed or if there is no further updates.'
16+
close-issue-message: 'This issue is closed because it has been stale for 5 days. Please open a new issue if you have similar issues or you have any new updates now.'
17+
close-pr-message: 'This PR is closed because it has been stale for 10 days. Please reopen this PR if you have any updates and want to keep contributing the code.'
18+
# only issues/PRS with any of invalid and awaiting response labels are checked
19+
any-of-labels: 'invalid, awaiting response'
20+
days-before-issue-stale: 7
21+
days-before-pr-stale: 45
22+
days-before-issue-close: 5
23+
days-before-pr-close: 10
24+
# automatically remove the stale label when the issues or the pull reqquests are updated or commented
25+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)