aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/stale.yml
blob: 1b8bb060e3c23fb2c41626db718f27ff52967849 (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
28
29
30
31
32
33
34
35
36
37
name: Close inactive issues and pull requests
on:
  schedule:
    - cron: "30 1 * * *"

jobs:
  close-issues:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
      - uses: actions/stale@v10
        with:
          days-before-issue-stale: 90
          days-before-issue-close: 90
          stale-issue-label: "stale"
          exempt-all-milestones: true
          exempt-issue-labels: "bug, high priority, good first issue, pinned"
          stale-issue-message: >-
            This issue has been automatically marked as stale because it has not
            had any recent activity. It will be closed soon if no further
            activity occurs. Thank you for your contribution and understanding!
          close-issue-message: >-
            This issue been automatically closed due to lack of activity. Feel free to re-open it
            if you ever come back to it.
          days-before-pr-stale: 90
          days-before-pr-close: 90
          exempt-pr-labels: "high priority, good first issue, pinned"
          stale-pr-message: >-
            This pull request has been automatically marked as stale because it has not
            had any recent activity. It will be closed soon if no further
            activity occurs. Thank you for your contribution and understanding!
          close-pr-message: >-
            This issue been automatically closed due to lack of activity. Feel free to re-open it
            if you ever come back to it.
          repo-token: ${{ secrets.GITHUB_TOKEN }}