-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
807505d
commit 5a1562f
Showing
1 changed file
with
13 additions
and
10 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,24 +1,27 @@ | ||
name: 'Lock Threads' | ||
name: 'Manage Stale Content' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0/4 * * *' | ||
- cron: '0 */4 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lock: | ||
manage-stale: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
days-before-issue-stale: 120 | ||
days-before-issue-close: 45 | ||
days-before-issue-stale: 45 | ||
days-before-issue-close: 50 | ||
stale-issue-message: "This issue is stale because it has been open for 45 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 50 days since being marked as stale. Please open a new issue for related bugs." | ||
days-before-pr-stale: 45 # Assuming you want the same for PRs | ||
days-before-pr-close: 50 | ||
stale-pr-message: "This PR is stale because it has been open for 45 days with no activity." | ||
close-pr-message: "This PR was closed because it has been inactive for 50 days since being marked as stale. Please open a new related PR if necessary." | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale. Please open a new issue for related bugs." | ||
days-before-pr-stale: -1 | ||
days-before-pr-close: -1 | ||
repo-token: ${{ github.token }} | ||
stale-pr-label: "stale" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |