From 50d0d5e7c853362e1e5ddbb1724c77e290e6a3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=B4=87=CA=80=C9=B4=E1=B4=85=20S=E1=B4=84=CA=9C?= =?UTF-8?q?=E1=B4=8F=CA=80=C9=A2=E1=B4=87=CA=80s?= Date: Fri, 7 Jan 2022 14:54:18 +0100 Subject: [PATCH] chore: Be more strict on stale issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs --- .github/workflows/stale.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 1744f72d..109798c6 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -1,6 +1,7 @@ --- name: "Mark or close stale issues and PRs" on: + workflow_dispatch: schedule: # Run the stalebot every day at 8pm UTC - cron: "00 20 * * *" @@ -9,11 +10,19 @@ jobs: stale: runs-on: ubuntu-20.04 steps: - - uses: actions/stale@v4 + - name: Get app-token + uses: getsentry/action-github-app-token@v1 + id: get-app-token with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-issue-stale: 90 - days-before-pr-stale: 90 + app_id: ${{ secrets.K8S_AT_HOME_APP_ID }} + private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }} + + - 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-pr-close: 14 stale-issue-message: >