Skip to content

Mark stale issues and pull requests #209

Mark stale issues and pull requests

Mark stale issues and pull requests #209

Workflow file for this run

# This workflow warns and then closes issues and PRs with no recent activity.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: 'Mark stale issues and pull requests'
on:
schedule:
- cron: '23 11 * * 1-5'
# Declare default permissions as read only.
permissions:
contents: read
jobs:
stale:
runs-on: ubuntu-22.04
permissions:
issues: write
pull-requests: write
steps:
- name: 'Harden runner'
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
- name: 'Stale issue/PR check'
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
close-issue-label: 'wontfix'
close-issue-message: 'Closed due to lack of activity'
close-pr-label: 'wontfix'
close-pr-message: 'Closed due to lack of activity'
days-before-close: 14 # stale+close+13 <= artifact retention (90 max)
days-before-stale: 63
delete-branch: true # branches can almost always be reopened
exempt-all-assignees: true
exempt-all-milestones: true
exempt-issue-labels: 'bug,enhancement'
stale-issue-label: 'inactive'
stale-issue-message: 'This will be closed if there’s no activity soon'
stale-pr-label: 'inactive'
stale-pr-message: 'This PR will be closed if there’s no activity soon'