From 13f33b09f0f6da85af23ed0eb9c22c92aae4b785 Mon Sep 17 00:00:00 2001 From: Diego Ciangottini Date: Wed, 22 Feb 2023 10:43:36 +0100 Subject: [PATCH 1/2] proposal for stale issue updates --- .github/workflows/stale-issues.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/stale-issues.yaml diff --git a/.github/workflows/stale-issues.yaml b/.github/workflows/stale-issues.yaml new file mode 100644 index 00000000..521b42e8 --- /dev/null +++ b/.github/workflows/stale-issues.yaml @@ -0,0 +1,21 @@ +name: 'Close stale issues and PR' +on: + schedule: + - cron: '30 1 * * *' + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v7 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + days-before-stale: 30 + days-before-close: 5 + days-before-pr-close: -1 From 60d87e66b4a7572189626a8faf22d69ac7ee1aef Mon Sep 17 00:00:00 2001 From: dciangot Date: Fri, 8 Sep 2023 08:09:27 +0200 Subject: [PATCH 2/2] stale-issues.yaml move close from 5d to 10d --- .github/workflows/stale-issues.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale-issues.yaml b/.github/workflows/stale-issues.yaml index 521b42e8..9541a58e 100644 --- a/.github/workflows/stale-issues.yaml +++ b/.github/workflows/stale-issues.yaml @@ -13,9 +13,9 @@ jobs: steps: - uses: actions/stale@v7 with: - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' - stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' - close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + close-issue-message: 'This issue was closed because it has been stalled for 10 days with no activity.' days-before-stale: 30 - days-before-close: 5 + days-before-close: 10 days-before-pr-close: -1