Skip to content

Commit

Permalink
corrected stale.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alhasacademy96 authored Mar 9, 2024
1 parent 807505d commit 5a1562f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/stale.yml
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 }}

0 comments on commit 5a1562f

Please sign in to comment.