Mark or close stale issues and PRs #1082
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 or close stale issues and PRs" | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
permissions: | |
contents: read | |
jobs: | |
stale: | |
permissions: | |
issues: write # for actions/stale to close stale issues | |
pull-requests: write # for actions/stale to close stale PRs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v4 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
days-before-stale: 365 | |
stale-issue-label: Stale | |
stale-pr-label: Stale | |
stale-issue-message: | | |
This issue has been automatically marked as stale because it has been a | |
full year without activity. It will be closed if no further activity occurs. | |
Thank you for your contributions. | |
stale-pr-message: | | |
This pull request has been automatically marked as stale because it has been a | |
full year without activity. It will be closed if no further activity occurs. | |
Thank you for your contributions. | |
# Not stale if using these labels | |
exempt-issue-labels: Pinned,Security,Specification,TCK | |
exempt-pr-labels: Pinned,Security,Specification,TCK | |
exempt-all-milestones: false | |
days-before-close: 30 | |
delete-branch: true | |
close-issue-message: This issue has been closed due to it having no activity. | |
close-pr-message: This pull request has been closed due to it having no activity. |