chore: Be more strict on stale issues

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-01-07 14:54:18 +01:00
parent 278351c2de
commit 50d0d5e7c8
No known key found for this signature in database
GPG Key ID: BC5E2BD907F9A8EC

View File

@ -1,6 +1,7 @@
--- ---
name: "Mark or close stale issues and PRs" name: "Mark or close stale issues and PRs"
on: on:
workflow_dispatch:
schedule: schedule:
# Run the stalebot every day at 8pm UTC # Run the stalebot every day at 8pm UTC
- cron: "00 20 * * *" - cron: "00 20 * * *"
@ -9,11 +10,19 @@ jobs:
stale: stale:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/stale@v4 - name: Get app-token
uses: getsentry/action-github-app-token@v1
id: get-app-token
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
days-before-issue-stale: 90 private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
days-before-pr-stale: 90
- name: Check for stale issues and PRs
uses: actions/stale@v4
with:
repo-token: ${{ steps.get-app-token.outputs.token }}
days-before-issue-stale: 60
days-before-pr-stale: 60
days-before-close: 14 days-before-close: 14
days-before-pr-close: 14 days-before-pr-close: 14
stale-issue-message: > stale-issue-message: >