Skip to content

Commit a86484d

Browse files
Adding a github actions to automatically close stale issues/PRs based on CLOUDP-79100 (#872)
* Adding a github actions to automatically close stale issues/PRs based on CLOUDP-79100 * Update stale.yml
1 parent a2905f3 commit a86484d

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/stale.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: 'Stale issues and PRs handler'
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v6
13+
id: stale
14+
with:
15+
stale-issue-message: 'This issue has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!'
16+
stale-pr-message: 'This PR has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!'
17+
stale-issue-label: 'stale'
18+
stale-pr-label: 'stale'
19+
days-before-stale: 30
20+
days-before-close: 30
21+
exempt-pr-labels: 'not_stale'
22+
exempt-issue-labels: 'not_stale'

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,8 @@ The integration tests helps the validation for resources interacting with third
258258

259259
### Autoclose stale issues and PRs
260260

261-
- After 30 days of no activity (no comments or commits are on an issue or PR) we automatically tag it as “stale” and add a message: "This issue has gone 30 days without any activity and meets the project’s definition of ‘stale’. This will be auto-closed if there is no new activity over the next 60 days. If the issue is still relevant and active, you can simply comment with a “bump” to keep it open, or add the “[Status] Not Stale” label. Thanks for keeping our repository healthy!"
262-
263-
- After 60 more days of no activity we automatically close the issue / PR.
261+
- After 30 days of no activity (no comments or commits on an issue/PR) we automatically tag it as "stale" and add a message: ```This issue/PR has gone 30 days without any activity and meets the project's definition of "stale". This will be auto-closed if there is no new activity over the next 60 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!```
262+
- After 60 more days of no activity we automatically close the issue/PR.
264263

265264
## Thanks
266265

0 commit comments

Comments
 (0)