-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
name: Close Stale Issues | ||
|
||
name: Close inactive issues | ||
on: | ||
schedule: | ||
- cron: "0 0 0 * *" | ||
- cron: "0 0 * * *" # Runs at 00:00 UTC every day | ||
|
||
jobs: | ||
stale: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Close stale issues | ||
uses: actions/stale@v1 | ||
- uses: actions/stale@v5 | ||
with: | ||
days: 30 | ||
days-before-issue-stale: 14 | ||
days-before-issue-close: 14 | ||
stale-issue-label: "stale" | ||
close-issue-label: "closed" | ||
stale-issue-message: "This issue has been inactive for 30 days. If you still need help, please provide more details or check if it's already been resolved." | ||
close-issue-message: "This issue has been closed due to inactivity. If you still need help, please open a new issue." | ||
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
days-before-pr-stale: -1 | ||
days-before-pr-close: -1 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |