aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsudoforge <no-reply@sudoforge.com>2024-07-20 18:27:21 -0700
committersudoforge <9c001b67637a@sudoforge.com>2024-07-20 18:39:44 -0700
commit00f5265a7bac771ae5d4e30b6ce9590229632375 (patch)
treefb07b8f07007303c6f8a28d575689d053d954298
parentbe005f6a1b0b18d0ad74a6d13898de6be61dc491 (diff)
downloadgit-bug-00f5265a7bac771ae5d4e30b6ce9590229632375.tar.gz
feat: add workflow for triaging stale issues and prs
Change-Id: I0fc9571d476b55a15edcef3645a5fa5f751fb427
-rw-r--r--.github/workflows/cron.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml
new file mode 100644
index 00000000..a52d094b
--- /dev/null
+++ b/.github/workflows/cron.yml
@@ -0,0 +1,28 @@
+name: cron
+
+on:
+ schedule:
+ - cron: '0 0 * * *' # every day at 00:00
+
+jobs:
+ stale:
+ name: stale/issue-and-pr
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ steps:
+ - uses: actions/stale@v9
+ stale-issue-label: lifecycle/stale
+ stale-pr-label: lifecycle/stale
+ days-before-stale: 90
+ days-before-close: 30
+ stale-issue-message: |
+ This bot triages untriaged issues and PRs according to the following rules:
+
+ - After 90 days of inactivity, the `lifecycle/stale` label is applied
+ - After 30 days of inactivity since `lifecycle/stale` was applied, the issue is closed
+
+ To remove the stale status, you can:
+
+ - Remove the `lifecycle/stale` label
+ - Comment on this issue