diff --git a/.github/stale.yml b/.github/stale.yml index b588e9a..7aaa1e2 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -1,16 +1,24 @@ -# 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: - - accepted -# 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/pull request has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false +# Stale action +# Visit following website for more information: https://github.com/marketplace/actions/close-stale-issues +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 60 + days-before-close: 7 + exempt-issue-labels: 'accepted' + stale-issue-label: 'stale' + stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.' + close-issue-message: 'Closing because no activity occured. Thank you for your contributions.' + exempt-pr-labels: 'accepted' + stale-pr-label: 'stale' + stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.' + close-pr-message: 'Closing because no activity occured. Thank you for your contributions.' + remove-stale-when-updated: true