Close user-tagged issues and PRs #37
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: "Close user-tagged issues and PRs" | |
on: | |
schedule: | |
- cron: "0 0 * * 0" # Once a week | |
jobs: | |
clean-up: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9 | |
with: | |
stale-issue-message: "This issue has been tagged as awaiting-changes or awaiting-feedback. Remove stale label or add a comment otherwise this issue will be closed in 20 days." | |
stale-pr-message: "This PR has been tagged as awaiting-changes or awaiting-feedback. Remove stale label or add a comment if it is still useful." | |
close-issue-message: "This issue was closed because it has been tagged as awaiting-changes or awaiting-feedback and then staled for 20 days with no activity." | |
days-before-stale: 30 | |
days-before-close: 20 | |
days-before-pr-close: -1 | |
any-of-labels: "awaiting-changes,awaiting-feedback" | |
exempt-issue-labels: "WIP" | |
exempt-pr-labels: "WIP" | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" |