diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..d5e9a5069 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +--- +name: 'Stale issues and PRs handler' +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v6 + id: stale + with: + 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!' + 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!' + stale-issue-label: 'stale' + stale-pr-label: 'stale' + days-before-stale: 30 + days-before-close: 30 + exempt-pr-labels: 'not_stale' + exempt-issue-labels: 'not_stale' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 78f7d9618..d7b83f878 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,6 +44,11 @@ Some additional advice: Before creating a pull request consider opening a new issue first, please check [this section](#reporting-bugs-or-suggesting-enhancements) on how we track issues for this project. +### Autoclose stale issues and PRs + +- 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!``` +- After 60 more days of no activity we automatically close the issue/PR. + ### Development setup #### Prerequisite Tools