From 214b72ba689baa1cab3a7aa8f7b15d50a87f93bd Mon Sep 17 00:00:00 2001 From: Sergey Petrov Date: Tue, 29 Oct 2019 23:48:27 +0300 Subject: [PATCH] Migrate stale bot to github actions (#97) --- .github/stale.yml | 13 ------------- .github/workflows/stale.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 13 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 d642d47..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 182 - -# 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 it has not had - recent activity. It will be closed if no further activity occurs. - -# 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..9f11763 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,19 @@ +name: Mark stale issues + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 182 + stale-issue-label: stale + 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.