diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index ef516e2c82..0000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,40 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale (approx. 9 months) -daysUntilStale: 270 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. -# Set to false to disable. If disabled, issues still need to be closed manually but will remain marked as stale. -daysUntilClose: 7 - -# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) -onlyLabels: [] - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - pinned - -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: false - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: false - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: false - -# Label to use when marking as stale -staleLabel: stale - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - Hey Friends, this issue has been automatically marked as `stale` because it has not had - recent activity. It will be closed if no further activity occurs. Please add the - `pinned` label if you feel that this issue needs to remain open/active. - Thank you for your contributions and help in keeping things tidy! - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - -# Limit to only `issues` or `pulls` -only: issues diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..a6c3615e83 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ + +name: 'Close stale issues and PRs' +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + stale-issue-message: > + '👋 Hey Friends, this issue has been automatically marked as `stale` because it has no recent activity. + It will be closed if no further activity occurs. + Please add the `pinned` label if you feel that this issue needs to remain open/active. + Thank you for your contributions and help in keeping things tidy!' + stale-pr-message: > + '👋 Hey Friends, this pull request has been automatically marked as `stale` because it has no recent activity. + It will be closed if no further activity occurs. + Please add the `pinned` label if you feel that this issue needs to remain open/active. + Thank you for your contributions and help in keeping things tidy!' + days-before-stale: 270 + days-before-close: 7 + exempt-issue-labels: 'pinned, work-in-progress' + exempt-pr-labels: 'pinned, work-in-progress'