diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index e33e9247d428c..0000000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# General configuration -# Label to use when marking as stale -staleLabel: stale - -# Pull request specific configuration -pulls: - # Number of days of inactivity before an Issue or Pull Request becomes stale - daysUntilStale: 7 - # Number of days of inactivity before a stale Issue or Pull Request is closed. - # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. - daysUntilClose: 7 - # Comment to post when marking as stale. Set to `false` to disable - markComment: > - This pull request has been automatically marked as stale because it has not had - activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please - feel free to give a status update now, ping for review, or re-open when it's ready. - Thank you for your contributions! - # Comment to post when closing a stale Issue or Pull Request. - closeComment: > - This pull request has been automatically closed because it has not had - activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. - Thank you for your contributions! - # Limit the number of actions per hour, from 1-30. Default is 30 - limitPerRun: 1 - exemptLabels: - - no stalebot - -# Issue specific configuration -issues: - # TODO: Consider increasing the limitPerRun once we are satisfied with the bot's performance - limitPerRun: 1 - daysUntilStale: 30 - daysUntilClose: 7 - markComment: > - This issue has been automatically marked as stale because it has not had activity in the - last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity - occurs. Thank you for your contributions. - closeComment: > - This issue has been automatically closed because it has not had activity in the - last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". - Thank you for your contributions. - exemptLabels: - - help wanted - - no stalebot diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000000..d21d1b02b6547 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,38 @@ +on: + schedule: + - cron: '0 * * * *' + +jobs: + Prune Stale: + runs-on: ubuntu-latest + + steps: + - name: Prune Stale + uses: actions/stale@v3.0.14 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + # Different amounts of days for issues/PRs are not currently supported but there is a PR + # open for it: https://github.com/actions/stale/issues/214 + days-before-stale: 30 + days-before-close: 7 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had activity in the + last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity + occurs. Thank you for your contributions. + close-issue-message: > + This issue has been automatically closed because it has not had activity in the + last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". + Thank you for your contributions. + stale-pr-message: > + This pull request has been automatically marked as stale because it has not had + activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please + feel free to give a status update now, ping for review, or re-open when it's ready. + Thank you for your contributions! + close-pr-message: > + This pull request has been automatically closed because it has not had + activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. + Thank you for your contributions! + stale-issue-label: 'stale' + exempt-issue-labels: 'no stalebot,help wanted' + stale-pr-label: 'stale' + exempt-pr-labels: 'no stalebot' \ No newline at end of file