Mark stale issues and pull requests #792
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
name: "Mark stale issues and pull requests" | |
on: | |
schedule: | |
- cron: "0 21 * * *" | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label' | |
stale-pr-message: 'Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label' | |
stale-issue-label: 'inactive' | |
stale-pr-label: 'inactive' | |
exempt-issue-labels: 'feature,bug,enhancement,improvement,wontfix,todo,help wanted,security' | |
exempt-pr-labels: 'feature,bug,enhancement,improvement,wontfix,todo,help wanted,security' | |
exempt-all-milestones: true | |
days-before-issue-stale: 15 | |
days-before-issue-close: 20 | |
days-before-pr-stale: 30 | |
days-before-pr-close: 180 | |
operations-per-run: 10 | |
start-date: '2018-10-01T00:00:00Z' | |
exempt-all-assignees: true | |
remove-stale-when-updated: true | |
exempt-all-pr-milestones: true | |
delete-branch: false | |
enable-statistics: true |