From 92c70712debf5f89056ec0b6f4a6fb2949e815b5 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Sun, 14 May 2023 13:06:01 -0400 Subject: [PATCH 1/3] Add workflow for stale issues Signed-off-by: Byron Ruth --- .github/workflows/stale-issues.yaml | 17 +++++++++++++++++ 1 file changed, 17 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..75a70ead --- /dev/null +++ b/.github/workflows/stale-issues.yaml @@ -0,0 +1,17 @@ +name: stale-issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + - name: stale-issues + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + debug-only: true # Set until the behavior is tuned. + days-before-stale: 28 # Mark stale after 4 weeks (28 days) of inactivity + days-before-close: 7 # Close 1 week after marked `Stale` and without follow-up activity + exempt-all-milestones: true # Any issue/PR within a milestone will be omitted + #exempt-assigness: "foo,bar" # Exempt issues/PRs assigned to particular users From 7e9a427d131a05ed758618cae36d407768fcc3bf Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Sun, 14 May 2023 13:19:30 -0400 Subject: [PATCH 2/3] Fix workflow structure Signed-off-by: Byron Ruth --- .github/workflows/stale-issues.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/stale-issues.yaml b/.github/workflows/stale-issues.yaml index 75a70ead..9d00094c 100644 --- a/.github/workflows/stale-issues.yaml +++ b/.github/workflows/stale-issues.yaml @@ -4,14 +4,14 @@ on: - cron: "30 1 * * *" jobs: - - name: stale-issues - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v8 - with: - debug-only: true # Set until the behavior is tuned. - days-before-stale: 28 # Mark stale after 4 weeks (28 days) of inactivity - days-before-close: 7 # Close 1 week after marked `Stale` and without follow-up activity - exempt-all-milestones: true # Any issue/PR within a milestone will be omitted - #exempt-assigness: "foo,bar" # Exempt issues/PRs assigned to particular users + stale: + runs-on: ubuntu-latest + + steps: + - uses: actions/stale@v8 + with: + debug-only: true # Set until the behavior is tuned. + days-before-stale: 28 # Mark stale after 4 weeks (28 days) of inactivity + days-before-close: 7 # Close 1 week after marked `Stale` and without follow-up activity + exempt-all-milestones: true # Any issue/PR within a milestone will be omitted + #exempt-assigness: "foo,bar" # Exempt issues/PRs assigned to particular users From f764853e00487315140196ee57d50889eb48c6a3 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 15 May 2023 09:14:31 -0400 Subject: [PATCH 3/3] Disable auto-closing, increase stale threshold Signed-off-by: Byron Ruth --- .github/workflows/stale-issues.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale-issues.yaml b/.github/workflows/stale-issues.yaml index 9d00094c..1d518508 100644 --- a/.github/workflows/stale-issues.yaml +++ b/.github/workflows/stale-issues.yaml @@ -3,6 +3,10 @@ on: schedule: - cron: "30 1 * * *" +permissions: + issues: write + pull-requests: write + jobs: stale: runs-on: ubuntu-latest @@ -11,7 +15,7 @@ jobs: - uses: actions/stale@v8 with: debug-only: true # Set until the behavior is tuned. - days-before-stale: 28 # Mark stale after 4 weeks (28 days) of inactivity - days-before-close: 7 # Close 1 week after marked `Stale` and without follow-up activity + days-before-stale: 56 # Mark stale after 8 weeks (56 days) of inactivity + days-before-close: -1 # Disable auto-closing exempt-all-milestones: true # Any issue/PR within a milestone will be omitted #exempt-assigness: "foo,bar" # Exempt issues/PRs assigned to particular users