From b13247c333339bcd8bf963e62df2e03f37383984 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Mon, 27 Jul 2020 08:57:57 -0700 Subject: [PATCH 1/3] introduce stale issue bot Signed-off-by: Matthew Fisher --- .github/workflows/stale-issue-bot.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/stale-issue-bot.yaml diff --git a/.github/workflows/stale-issue-bot.yaml b/.github/workflows/stale-issue-bot.yaml new file mode 100644 index 000000000..e21e6d5ca --- /dev/null +++ b/.github/workflows/stale-issue-bot.yaml @@ -0,0 +1,15 @@ +name: "Close stale issues" +on: + schedule: + - cron: "0 0 * * *" +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.' + exempt-issue-labels: 'keep open' + days-before-stale: 90 + days-before-close: 30 From 9664bb2a0a528e1b9262501dfaee587e0e459c39 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 19 Aug 2020 13:20:54 -0700 Subject: [PATCH 2/3] add v4 to list of exempt labels Signed-off-by: Matthew Fisher --- .github/workflows/stale-issue-bot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale-issue-bot.yaml b/.github/workflows/stale-issue-bot.yaml index e21e6d5ca..946e7f09b 100644 --- a/.github/workflows/stale-issue-bot.yaml +++ b/.github/workflows/stale-issue-bot.yaml @@ -10,6 +10,6 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.' - exempt-issue-labels: 'keep open' + exempt-issue-labels: 'keep open,v4.x' days-before-stale: 90 days-before-close: 30 From d13c43d3e8d54c09d82d2aff68b06255538649c8 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 19 Aug 2020 13:33:12 -0700 Subject: [PATCH 3/3] use URL escape codes Signed-off-by: Matthew Fisher --- .github/workflows/stale-issue-bot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale-issue-bot.yaml b/.github/workflows/stale-issue-bot.yaml index 946e7f09b..32ea22418 100644 --- a/.github/workflows/stale-issue-bot.yaml +++ b/.github/workflows/stale-issue-bot.yaml @@ -10,6 +10,6 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.' - exempt-issue-labels: 'keep open,v4.x' + exempt-issue-labels: 'keep+open,v4.x' days-before-stale: 90 days-before-close: 30