aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/close_stale.yml
blob: caabc7f2ac3889906d26d6c3f3b2f1b2ef916123 (plain)
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
name: close-stales

on:
  schedule:
    - cron: '27 10 * * *'

jobs:
  stale-issues:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v1.1.0
        with:
          repo-token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}
          stale-issue-message: 'This issue is stale because it has been open 400 days with no activity. Remove stale label or this will be closed in 8 days'
          days-before-stale: 400
          days-before-close: 8
          operations-per-run: 30
  stale-pr:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v1.1.0
        with:
          repo-token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}
          stale-pr-message: 'This pull-request is stale because it has been open 40 days with no activity. Remove stale label or this will be closed in 8 days'
          days-before-stale: 40
          days-before-close: 8
          operations-per-run: 30