stale-issues #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is responsible for auto marking issues and PRs as stale | |
# It will mark issues as stale after 30 days, and close them 14 days after that | |
# It will mark PRs as stale after 45 days, and will never close them | |
# It will never mark an issue or PR that has a milestone or has an assignee | |
# Exempt labels that will never be checked include: stale-exempt,future addition,enhancement,autorelease: tagged,autorelease: pending | |
# It will only check issues or PRs made after 2022-06-01T00:00:00 | |
name: stale-issues | |
on: | |
schedule: | |
- cron: '30 1 * * *' | |
jobs: | |
stale: | |
permissions: | |
issues: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use stale | |
uses: actions/stale@v5 | |
with: | |
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity. Either remove stale label or comment, otherwise this will be closed in 90 days' | |
stale-pr-message: 'This PR is stale because it has been open for 45 days with no activity. It will not be auto-closed' | |
close-issue-message: 'This issue was closed because it has been stalled for 90 days with no activity' | |
days-before-issue-stale: 30 | |
days-before-pr-stale: 45 | |
days-before-issue-close: 90 | |
days-before-pr-close: -1 | |
stale-issue-label: stale | |
stale-pr-label: stale | |
exempt-issue-labels: 'stale-exempt,future addition,enhancement,autorelease: tagged,autorelease: pending' | |
exempt-pr-labels: 'stale-exempt,future addition,enhancement,autorelease: tagged,autorelease: pending' | |
start-date: '2022-06-01T00:00:00' | |
exempt-all-milestones: true | |
exempt-assignees: true |