From fa3257873e9d96c3a171fbab949b73d4cc4d3455 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 8 Jun 2023 00:46:37 +0800 Subject: [PATCH] build: replace the stale app with gh-actions The stale app is deprecated and no longer maintained --- .github/stale.yml | 17 ----------------- .github/workflows/stale.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 17 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml 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.