diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index c6fd0c20b..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - bug - - "help wanted" - - "MERGE ME" - - "NEEDS REVIEW" -# Ignore issues in a milestone -exemptMilestones: true -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue/proposal has been automatically marked as idle and stale because it hasn't - had any recent activity. It will be automtically closed if no further activity - occurs. If you think this is wrong, or the problem still persists, just pop - a reply in the comments and one of the maintainers will (try!) to follow up. - - Thank you for contributing :) -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..eebce5aeb --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,42 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '10 05 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: > + This issue/proposal has been automatically marked as idle and stale because it hasn't + had any recent activity. It will be automatically closed if no further activity + occurs. If you think this is wrong, or the problem still persists, just pop + a reply in the comments and one of the maintainers will (try!) to follow up. + + Thank you for contributing :) + stale-pr-message: > + This issue/proposal has been automatically marked as idle and stale because it hasn't + had any recent activity. It will be automatically closed if no further activity + occurs. If you think this is wrong, or the problem still persists, just pop + a reply in the comments and one of the maintainers will (try!) to follow up. + + Thank you for contributing :) + stale-issue-label: 'stale' + stale-pr-label: 'stale' + exempt-all-milestones: true + exempt-issue-labels: 'bug, help wanted' + exempt-pr-labels: 'MERGE ME, NEEDS REVIEW'