diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 075c35649..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 180 - -# Number of days of inactivity before a stale Issue or Pull Request is closed -daysUntilClose: 7 - -# Issues or Pull Requests with these labels will never be considered stale -exemptLabels: - - Bug - - Enhancement - -# Label to use when marking as stale -staleLabel: Stale - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. - -# Comment to post when removing the stale label. Set to `false` to disable -unmarkComment: false - -# Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable -closeComment: false - -# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': -pulls: - daysUntilStale: 30 - markComment: > - 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. \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..a9c7fd7b8 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + 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.' + 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.' + days-before-issue-stale: 180 + days-before-pr-stale: 30 + days-before-issue-close: 7 + days-before-pr-close: 7 + stale-issue-label: 'Stale' + stale-pr-label: 'Stale' + exempt-issue-labels: 'Bug,Enhancement' + exempt-pr-labels: '' \ No newline at end of file