From 10da834367a38bfca28c858b3f27fcf88fabdd51 Mon Sep 17 00:00:00 2001
From: Daniel <dhaavi@users.noreply.github.com>
Date: Wed, 30 Aug 2023 13:00:46 +0200
Subject: [PATCH] Update issue management workflows

---
 .github/workflows/issues-stale.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/issues-stale.yml b/.github/workflows/issues-stale.yml
index fe55a55..bdb4d38 100644
--- a/.github/workflows/issues-stale.yml
+++ b/.github/workflows/issues-stale.yml
@@ -4,7 +4,8 @@ name: Close Stale Issues
 
 on:
   schedule:
-    - cron: "17 * * * 1-5" # run at 5:17 (UTC) on Monday to Friday
+    - cron: "17 5 * * 1-5" # run at 5:17 (UTC) on Monday to Friday
+  workflow_dispatch:
 
 permissions:
   contents: read
@@ -17,6 +18,9 @@ jobs:
       - uses: actions/stale@v8
         with:
           repo-token: ${{ secrets.GITHUB_TOKEN }}
+          # Increase max operations.
+          # When using GITHUB_TOKEN, the rate limit is 1,000 requests per hour per repository.
+          operations-per-run: 500
           # Handle stale issues
           stale-issue-label: 'stale'
           # Exemptions
@@ -35,3 +39,4 @@ jobs:
 
             If the issue has not been resolved, you can [find more information in our Wiki](https://wiki.safing.io/) or [continue the conversation on our Discord](https://discord.gg/safing).
           # TODO: Handle stale PRs
+          days-before-pr-stale: 36500 # 100 years - effectively disabled.