Add nuanced stalebot workflow

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
This commit is contained in:
Chiedo John 2021-02-04 09:48:45 -05:00 коммит произвёл GitHub
Родитель 2a2e289c7d
Коммит f10360f689
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 21 добавлений и 6 удалений

27
.github/workflows/triage-stale-check.yml поставляемый
Просмотреть файл

@ -4,7 +4,7 @@ on:
- cron: '45 16 * * *' # Run each day at 16:45 UTC / 8:45 PST
jobs:
stale:
stale_contributor:
if: github.repository == 'github/docs'
runs-on: ubuntu-latest
@ -12,9 +12,24 @@ jobs:
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity and will be automatically closed in 10 days. To keep this PR open, update the PR by adding a comment or pushing a commit.'
days-before-stale: 21
days-before-close: 10
stale-pr-message: 'A stale label has been added to this pull request because it has been open 7 days with no activity. To keep this PR open, add a comment or push a commit within 3 days.'
days-before-pr-stale: 7
days-before-pr-close: 3
stale-pr-label: 'stale'
exempt-pr-labels: 'never-stale'
exempt-issue-labels: 'never-stale'
exempt-pr-labels: 'waiting for review'
stale_staff:
if: github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This is a gentle bump for the docs team that this PR is waiting for review.'
days-before-pr-stale: 14
days-before-pr-close: -1 # Never close
only-labels: 'waiting for review'
# The hope is that by setting the stale-pr-label to the same label
# as the label that the stale check looks for, this will result in
# a comment being posted every 14 days as an infinite loop, which is what
# we want
stale-pr-label: 'waiting for review'