From 68fb198dcdeb2ac33c316d901d95c6e34822de4c Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 23 Dec 2020 10:18:23 +0800 Subject: [PATCH] Migrate from probot/stale to GitHub Actions --- .github/stale.yml | 25 ------------------------- .github/workflows/stale.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 25 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 bef24ac..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 30 -# Number of days of inactivity before a stale Issue or Pull Request is closed -daysUntilClose: 7 -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - Bug - - Feature Request - - Discussion - - Help Wanted -# Label to use when marking as stale -staleLabel: stale -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because lack of - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. You can also use our [support channels](https://github.com/next-theme/hexo-theme-next#feedback) to get help with the project. -# Comment to post when removing the stale label. Set to `false` to disable -unmarkComment: false -# Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable -closeComment: false -# 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 0000000..fd01689 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: Close Stale Issues + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: > + This issue has been automatically marked as stale because lack of + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. You can also use our [support channels](https://github.com/next-theme/hexo-theme-next#feedback) to get help with the project. + exempt-issue-labels: + - Bug + - Feature Request + - Discussion + - Help Wanted