Mark stale issues and pull requests #4
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 23 * * *' # once a day at 11pm UTC time zone | |
jobs: | |
stale: | |
permissions: | |
issues: write # for commenting on an issue and editing labels | |
pull-requests: write # for commenting on a PR and editing labels | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
# timing | |
days-before-stale: 60 # 60 days of inactivity | |
days-before-close: 30 # 30 more days of inactivity | |
# labels to watch for, add, and remove | |
only-labels: 'pending info' # only mark issues/PRs as stale if they have this label | |
labels-to-remove-when-unstale: 'pending info' # remove label when unstale -- should be manually added back if information is insufficient | |
# automated messages to issue/PR authors | |
stale-issue-message: 'This issue has been marked as stale because it has been open for 60 days with no activity. This issue will be automatically closed in 30 days if no further activity occurs.' | |
stale-pr-message: 'This pull request has been marked as stale because it has been open for 60 days with no activity. This pull request will be automatically closed in 30 days if no further activity occurs.' | |
close-issue-message: 'This issue was closed because it has been inactive for 30 days since being marked as stale.' | |
close-pr-message: 'This pull request was closed because it has been inactive for 30 days since being marked as stale.' |