summaryrefslogtreecommitdiff
path: root/.github/workflows/check-stale.yml
blob: 5996e3846c5896de77aafd7d7aeb8c7a0a43536f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: "Issue and PR stale management"
on:
  schedule:
  - cron: "0 0 * * *"

jobs:
  stale:
    runs-on: ubuntu-latest
    if: github.repository == 'vyos/vyatta-cfg-system'
    steps:
      # Issue stale management
    - uses: actions/stale@v6
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        days-before-stale: 90
        days-before-close: -1
        stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. The issue will be reviewed by a maintainer and may be closed'
        stale-issue-label: 'state: stale'
        exempt-issue-labels: 'state: accepted, state: in-progress'
        stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. The PR will be reviewed by a maintainer and may be closed'
        stale-pr-label: 'state: stale'
        exempt-pr-labels: 'state: accepted, state: in-progress'