From 5a1562f01c1fb0350c0cf05c8ccf3382cef8cab4 Mon Sep 17 00:00:00 2001 From: Ibrahim Alhas <65875290+alhasacademy96@users.noreply.github.com> Date: Sat, 9 Mar 2024 19:36:15 +0000 Subject: [PATCH] corrected stale.yml --- .github/workflows/stale.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 78cb504..2f3590f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,12 +1,12 @@ -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 @@ -14,11 +14,14 @@ jobs: 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 }}