From 1999e2c611e195a11273c51447baffee3cd0760a Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 6 Dec 2023 21:31:19 +0400 Subject: [PATCH] feat: add pr stale and close --- .github/workflows/close-inactive-pr.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close-inactive-pr.yml b/.github/workflows/close-inactive-pr.yml index e19063feb..19a62db15 100644 --- a/.github/workflows/close-inactive-pr.yml +++ b/.github/workflows/close-inactive-pr.yml @@ -13,10 +13,13 @@ jobs: - uses: actions/stale@v5 with: days-before-issue-stale: 20 - days-before-issue-close: 14 + days-before-issue-close: -1 stale-issue-label: 'stale' stale-issue-message: 'This issue is stale because it has been open for 20 days with no activity.' - 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 + days-before-pr-stale: 20 + days-before-pr-close: 7 + stale-pr-label: 'stale' + stale-pr-message: 'This pull request is stale because it has been open for 20 days with no activity.' + close-pr-message: 'This pull request was closed because it has been inactive for 7 days since being marked as stale.' + only-pr-labels: 'answer' repo-token: ${{ secrets.GITHUB_TOKEN }}