diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 873549bf40..0000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 60 - -# 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 - -issues: - exemptLabels: - - acknowledged - -# 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. Thank you - for your contributions. - -# Comment to post when closing a stale Issue or Pull Request. -closeComment: > - This issue has been closed due to inactivity. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 1 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..25f8ef220a --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,33 @@ +name: Mark stale issues and PRs + +on: + schedule: + - cron: '0 2 * * *' # daily at 02:00 UTC + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v10 + with: + days-before-stale: 60 + days-before-close: 7 + exempt-issue-labels: 'acknowledged' + 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. Thank you + for your contributions! + close-issue-message: > + This issue has been closed due to inactivity. + 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. Thank you + for your contributions! + close-pr-message: > + This pull request has been closed due to inactivity. + operations-per-run: 30