diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 019fa16..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Clean up the stale issues - -daysUntilStale: 30 -daysUntilClose: 1 - -exemptLabels: - - in progress - - pending - -staleLabel: stale - -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. - -closeComment: false diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..65599cd --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,30 @@ +name: "Close stale issues and PRs" + +on: + schedule: + - cron: "0 0 * * *" # every day at 00:00 UTC + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + days-before-stale: 30 + days-before-close: 1 + stale-issue-label: stale + exempt-issue-milestones: pending + 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. + stale-pr-label: stale + exempt-pr-milestones: pending + stale-pr-message: > + This PR 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.