github.com/safing/portbase@v0.19.5/.github/workflows/issues-stale.yml (about)

     1  # This workflow warns and then closes stale issues and PRs.
     2  # Docs: https://github.com/actions/stale
     3  name: Close Stale Issues 
     4  
     5  on:
     6    schedule:
     7      - cron: "17 5 * * 1-5" # run at 5:17 (UTC) on Monday to Friday
     8    workflow_dispatch:
     9  
    10  permissions:
    11    contents: read
    12    issues: write
    13  
    14  jobs:
    15    stale:
    16      runs-on: ubuntu-latest
    17      steps:
    18        - uses: actions/stale@v8
    19          with:
    20            repo-token: ${{ secrets.GITHUB_TOKEN }}
    21            # Increase max operations.
    22            # When using GITHUB_TOKEN, the rate limit is 1,000 requests per hour per repository.
    23            operations-per-run: 500
    24            # Handle stale issues
    25            stale-issue-label: 'stale'
    26            # Exemptions
    27            exempt-all-issue-assignees: true
    28            exempt-issue-labels: 'support,dependencies,pinned,security'
    29            # Mark as stale
    30            days-before-issue-stale: 63 # 2 months / 9 weeks
    31            stale-issue-message: |
    32              This issue has been automatically marked as inactive because it has not had activity in the past two months.
    33              
    34              If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics.
    35            # Close
    36            days-before-issue-close: 7 # 1 week
    37            close-issue-message: |
    38              This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.
    39  
    40              If the issue has not been resolved, you can [find more information in our Wiki](https://wiki.safing.io/) or [continue the conversation on our Discord](https://discord.gg/safing).
    41            # TODO: Handle stale PRs
    42            days-before-pr-stale: 36500 # 100 years - effectively disabled.