Close stale issues and PR #277
This file contains hidden or 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: "Close stale issues and PR" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 1 * * *" # https://crontab.guru/#30_1_*_*_* (everyday at 0130) | |
permissions: | |
contents: read | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/[email protected] | |
with: | |
operations-per-run: 200 | |
ascending: true | |
delete-branch: true | |
stale-issue-message: > | |
This issue is stale because it has been open 10 days with no activity. | |
Replace the `no-issue-activity` label with a `work-in-progress` label or comment or | |
this will be closed in 5 days. | |
close-issue-message: > | |
This issue was closed because it has been stalled for 5 days with no activity. | |
days-before-issue-stale: 10 | |
days-before-issue-close: 5 | |
stale-issue-label: "no-issue-activity" | |
exempt-issue-labels: "awaiting-approval,work-in-progress,keep" | |
stale-pr-message: > | |
This PR is stale because it has been open 20 days with no activity. | |
Replace the `no-pr-activity` label with a `work-in-progress` label or comment or | |
this will be closed in 5 days. | |
close-pr-message: > | |
This PR was closed because it has been stalled for 5 days with no activity. | |
days-before-pr-stale: 20 | |
days-before-pr-close: 5 | |
stale-pr-label: "no-pr-activity" | |
exempt-pr-labels: "awaiting-approval,work-in-progress,dependencies,keep" | |
exempt-pr-assignees: "snyk-github" |