From 9149d7bd557ae4649af80d2aa906f68ed8ca957f Mon Sep 17 00:00:00 2001 From: Daniel Oakman Date: Fri, 24 Nov 2023 14:57:38 +1100 Subject: [PATCH 1/4] INT-3259: Added github action for labeling and closing stale issues --- .github/workflows/stale.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..8aaebbce --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,26 @@ +name: "Stale" + +# This uses Github actions minutes. To learn more: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions + +on: + schedule: + - cron: "0 0 1 * *" + +jobs: + stale: + name: Close stale issues + runs-on: ubuntu-latest + permissions: + # contents: write # only for delete-branch option + issues: write + # pull-requests: write # only makes issues stale, not PRs + + steps: + - uses: actions/stale@v8 + with: + stale-issue-message: 'This issue is stale because it has been open for 7 days with no activity. Respond with a comment or this will be closed in 7 days.' + days-before-stale: 30 # Days before an issue becomes stale + days-before-close: 7 # Days before an issue with no activity after begin labelled "stale" is closed + any-of-labels: 'needs: more info' + labels-to-remove-when-unstale: 'needs: more info' + From 2364f29572a8897bc8a9971b5e74d2af18f6a849 Mon Sep 17 00:00:00 2001 From: Daniel Oakman Date: Fri, 24 Nov 2023 15:06:48 +1100 Subject: [PATCH 2/4] INT-3259: Corrected stale issue message --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 8aaebbce..550156b1 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/stale@v8 with: - stale-issue-message: 'This issue is stale because it has been open for 7 days with no activity. Respond with a comment or this will be closed in 7 days.' + stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity. Respond with a comment or this will be closed in 7 days.' days-before-stale: 30 # Days before an issue becomes stale days-before-close: 7 # Days before an issue with no activity after begin labelled "stale" is closed any-of-labels: 'needs: more info' From 7b334ecf44c57da5991fbb8cb1af74ef29a56de4 Mon Sep 17 00:00:00 2001 From: Daniel Oakman Date: Fri, 24 Nov 2023 15:12:24 +1100 Subject: [PATCH 3/4] INT-3259: Reworded a comment --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 550156b1..399518b5 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -20,7 +20,7 @@ jobs: with: stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity. Respond with a comment or this will be closed in 7 days.' days-before-stale: 30 # Days before an issue becomes stale - days-before-close: 7 # Days before an issue with no activity after begin labelled "stale" is closed + days-before-close: 7 # Days before a stale labelled issue is closed any-of-labels: 'needs: more info' labels-to-remove-when-unstale: 'needs: more info' From 40df7791f7db5a720541724a69a6ad18e5459349 Mon Sep 17 00:00:00 2001 From: Daniel Oakman Date: Mon, 27 Nov 2023 06:04:08 +1100 Subject: [PATCH 4/4] INT-3259: "1" should've been a "*" --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 399518b5..b3ab6128 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -4,7 +4,7 @@ name: "Stale" on: schedule: - - cron: "0 0 1 * *" + - cron: "0 0 * * *" jobs: stale: