Skip to content

Commit

Permalink
GH Action to tag and close stale issues (Chia-Network#7140)
Browse files Browse the repository at this point in the history
* Create stale-issue.yml

Created initial Stale Issue/PR script config with the following configuration parameters:

Run the script every day at 4am PST (11am UTC)
Flag issues as stale after 14 days of no activity with stale-issue label.
Flag PRs as stale after 60 days of no activity with stale-pr label.
Close stale issues after a further 7 days of no activty.
Do NOT close stale PRs, only warn with comments.
Ignore stale status for any Issues or PRs with an assigned milestone, or an assignee.
Remove stable labels if they have been updated

This change will not be put into a PR for review until this entire flow has been tested on release-test first.

* Update stale-issue.yml

changing to main to incorporate some needed fixes
  • Loading branch information
sargonas authored Jul 8, 2021
1 parent 7b1fc9a commit 2035fc8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/stale-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Close stale issues'
on:
schedule:
- cron: '0 11 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: chia-network/stale@main
with:
operations-per-run: 10000
ascending: true
days-before-issue-stale: 14
days-before-issue-close: 7
days-before-pr-stale: 60
days-before-pr-close: -1
exempt-all-pr-milestones: true
exempt-all-issue-milestones: true
exempt-all-assignees: true
stale-issue-label: stale-issue
stale-pr-label: stale-pr
remove-stale-when-updated: true
stale-issue-message: 'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.'
close-issue-message: 'This issue was automatically closed because it has been flagged as stale and subsequently passed 7 days with no further activity.'
stale-pr-message: 'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

0 comments on commit 2035fc8

Please sign in to comment.