From 2d8c149ac19bb0c164b5a932c97fa7eda97e6a20 Mon Sep 17 00:00:00 2001 From: Diana Lease Date: Wed, 4 Dec 2024 15:07:28 -0500 Subject: [PATCH 1/2] feat: add GH action for closing stale prs and issues Signed-off-by: Diana Lease --- .github/workflows/close-stale.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/close-stale.yml diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml new file mode 100644 index 000000000..ff65aeb55 --- /dev/null +++ b/.github/workflows/close-stale.yml @@ -0,0 +1,16 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 60 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 15 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + days-before-issue-stale: 60 + days-before-pr-stale: 15 + days-before-close: 10 \ No newline at end of file From cba403ecc4eef2960e5f6ef572ac8b508d9aa495 Mon Sep 17 00:00:00 2001 From: Diana Lease Date: Wed, 4 Dec 2024 15:27:19 -0500 Subject: [PATCH 2/2] feat: exempt anything in v4.0 milestone from being closed Signed-off-by: Diana Lease --- .github/workflows/close-stale.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml index ff65aeb55..1572a4820 100644 --- a/.github/workflows/close-stale.yml +++ b/.github/workflows/close-stale.yml @@ -13,4 +13,5 @@ jobs: stale-pr-message: 'This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days.' days-before-issue-stale: 60 days-before-pr-stale: 15 - days-before-close: 10 \ No newline at end of file + days-before-close: 10 + exempt-milestones: 'v4.0'