From 81e8a291c746477c477805f10f3d262f3105c8bd Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Sun, 10 Sep 2023 16:06:14 +0300 Subject: [PATCH 1/3] Extending the stale issues from redis-py --- .github/workflows/stale-issues.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 0000000000..32fd9e8179 --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,25 @@ +name: "Close stale issues" +on: + schedule: + - cron: "0 0 * * *" + +permissions: {} +jobs: + stale: + permissions: + issues: write # to close stale issues (actions/stale) + pull-requests: write # to close stale PRs (actions/stale) + + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is marked stale. It will be closed in 30 days if it is not updated.' + stale-pr-message: 'This pull request is marked stale. It will be closed in 30 days if it is not updated.' + days-before-stale: 365 + days-before-close: 30 + stale-issue-label: "Stale" + stale-pr-label: "Stale" + operations-per-run: 10 + remove-stale-when-updated: true From f6770ad3f826740d36622d0053c50a6533b2ee06 Mon Sep 17 00:00:00 2001 From: Chayim Date: Tue, 2 Jan 2024 11:46:44 +0200 Subject: [PATCH 2/3] Update .github/workflows/stale-issues.yml Co-authored-by: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> --- .github/workflows/stale-issues.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml index 32fd9e8179..53a28ea3e7 100644 --- a/.github/workflows/stale-issues.yml +++ b/.github/workflows/stale-issues.yml @@ -19,7 +19,7 @@ jobs: stale-pr-message: 'This pull request is marked stale. It will be closed in 30 days if it is not updated.' days-before-stale: 365 days-before-close: 30 - stale-issue-label: "Stale" - stale-pr-label: "Stale" + stale-issue-label: "stale" + stale-pr-label: "stale" operations-per-run: 10 remove-stale-when-updated: true From 0f1a4cd87e82f05eca5a0b7e1bea8999a2bf6607 Mon Sep 17 00:00:00 2001 From: Chayim Date: Tue, 2 Jan 2024 11:46:49 +0200 Subject: [PATCH 3/3] Update .github/workflows/stale-issues.yml Co-authored-by: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> --- .github/workflows/stale-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml index 53a28ea3e7..54bf059fba 100644 --- a/.github/workflows/stale-issues.yml +++ b/.github/workflows/stale-issues.yml @@ -22,4 +22,4 @@ jobs: stale-issue-label: "stale" stale-pr-label: "stale" operations-per-run: 10 - remove-stale-when-updated: true + remove-stale-when-updated: false