Update to use `actions/stale` instead of Stale Bot (#4143)

client-spec/clarity
Owen Voke 2020-07-14 22:28:34 +01:00 committed by GitHub
parent efd81478f1
commit ee665051b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 29 deletions

29
.github/stale.yml vendored
View File

@ -1,29 +0,0 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an issue or PR is considered stale
daysUntilStale: 15
# Number of days of inactivity before a stale issue or PR is closed
daysUntilClose: 30
# Issues or PRs with these labels will never be considered stale
exemptLabels:
- up for grabs
# Label to use when marking an issue or PR as stale
staleLabel: waiting
# Comment to post when marking an issue or PR as stale
markComment: >
Hi all! This thread has not had any recent activity.
Are there any updates? Thanks!
# Comment to post when closing a stale issue or PR
closeComment: >
Hi everyone.
This thread is being closed as there was no response to the previous prompt.
However, please leave a comment whenever you're ready to resume,
so the thread can be reopened. Thanks again!
# Limit to only `issues` or `pulls`
only: pulls

40
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: 'Manage stale issues'
on:
schedule:
- cron: '0 0 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Stale Bot
uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Number of days of inactivity before an issue or PR is considered stale
days-before-stale: 15
# Number of days of inactivity before a stale issue or PR is closed
days-before-close: 30
# Issues or PRs with these labels will never be considered stale
exempt-pr-labels: up for grabs
# Label to use when marking an issue or PR as stale
stale-pr-label: waiting
# Comment to post when marking an issue or PR as stale
stale-pr-message: |
Hi all! This thread has not had any recent activity.
Are there any updates? Thanks!
# Comment to post when closing a stale issue or PR
close-pr-message: |
Hi everyone.
This thread is being closed as there was no response to the previous prompt.
However, please leave a comment whenever you're ready to resume,
so the thread can be reopened. Thanks again!