aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/cron.yml
blob: 8ff477ccf66daa226d93f93356f612fdeb13c6ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: cron

on:
  workflow_dispatch:
  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
        with:
          operations-per-run: 1000
          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