π― Close Stale Issues #819
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
# Closes any issues that no longer have user interaction | |
name: π― Close Stale Issues | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * *' # Run at 01:00 each day | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
# Comment on, then close issues that haven't been updated for ages | |
- name: Close Stale Issues | |
uses: actions/stale@v4 | |
with: | |
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
days-before-stale: 30 | |
days-before-close: 5 | |
operations-per-run: 30 | |
remove-stale-when-updated: true | |
enable-statistics: true | |
stale-issue-message: > | |
This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. | |
Otherwise it will be closed in 5 working days. | |
stale-pr-message: > | |
This PR is stale because it has been open 6 weeks with no activity. Either remove the stale label or comment below with a short update, | |
otherwise this PR will be closed in 5 days. | |
close-issue-message: > | |
This issue was automatically closed because it has been stalled for over 6 weeks with no activity. | |
close-pr-message: > | |
This pull request was automatically closed because it has been stalled for over 6 weeks with no activity. | |
stale-issue-label: 'β°οΈ Stale' | |
close-issue-label: 'πΈοΈ Inactive' | |
stale-pr-label: 'β°οΈ Stale' | |
close-pr-label: 'πΈοΈ Inactive' | |
exempt-issue-labels: 'π Keep Open' | |
exempt-pr-labels: 'π Keep Open' | |
labels-to-add-when-unstale: 'π Keep Open' | |
# Comment on, then close issues that required a response from the user, but didn't get one | |
- name: Close Issues without Response | |
uses: actions/stale@v4 | |
with: | |
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
days-before-stale: 5 | |
days-before-close: 3 | |
operations-per-run: 30 | |
remove-stale-when-updated: true | |
stale-issue-message: > | |
Hello! Looks like additional info is required for this issue to be addressed. | |
Don't forget to provide this within the next few days to keep your ticket open. | |
close-issue-message: 'Issue closed due to no response from user.' | |
only-labels: 'π Awaiting User Response' | |
labels-to-remove-when-unstale: 'π Awaiting User Response, π No Response' | |
stale-issue-label: 'π No Response' | |
close-issue-label: 'πΈοΈ Inactive' | |
exempt-issue-labels: 'π Keep Open' | |
exempt-pr-labels: 'π Keep Open' | |
# Comment on issues that I should have replied to | |
- name: Notify Repo Owner to Respond | |
uses: actions/stale@v4 | |
with: | |
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
days-before-stale: 7 | |
days-before-close: 365 | |
operations-per-run: 30 | |
remove-stale-when-updated: true | |
stale-issue-message: Hey @Lissy93 - Don't forget to respond! | |
stale-pr-message: Hey @Lissy93 - Don't forget to respond! | |
only-labels: 'π€ Awaiting Maintainer Response' | |
labels-to-remove-when-unstale: 'π€ Awaiting Maintainer Response' | |
close-issue-message: 'Closed due to no response from repo author for over a year' | |
close-pr-message: 'Closed due to no response from repo author for over a year' | |
stale-issue-label: 'π€ Awaiting Maintainer Response' | |
stale-pr-label: 'π€ Awaiting Maintainer Response' | |
close-issue-label: 'πΈοΈ Inactive' | |
close-pr-label: 'πΈοΈ Inactive' | |
exempt-issue-labels: 'π Keep Open' | |
exempt-pr-labels: 'π Keep Open' |