From eda60e8fefc18b192fab7092112711adb333a204 Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Mon, 19 Aug 2024 09:46:24 +0200 Subject: [PATCH 1/7] feat: add workflow for stale issues --- .github/workflows/stale.yml | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 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..97258001 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,55 @@ +name: 👓 Handle stale issues +on: + schedule: + - cron: "30 2 * * *" # Runs every day at 2:30 AM UTC + +permissions: + contents: read + +jobs: + stale: + permissions: + issues: write # for actions/stale to close stale issues + if: github.repository_owner == 'GIScience' + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + stale-pr-label: 'stale' + # exempt-pr-labels: 'Merge After Thaw,Frozen' + days-before-pr-stale: 14 + days-before-pr-close: 7 + + stale-issue-message: > + The Openrouteservice project highly values your report and would love to see it addressed. + However, this issue has been left in feedback mode for the last 30 days and is + being automatically marked as "stale". + + If you would like to continue with this issue, please provide any missing information + or answer any open questions. If you could resolve the issue yourself meanwhile, + please leave a note for future readers with the same problem and close the issue. + + In case you should have any uncertainty, please leave a comment and we will be + happy to help you proceed with this issue. + + If there is no further activity on this issue, it will be closed in two weeks. + + + close-issue-message: > + While we hate to see this happen, this issue has been automatically closed because + it has not had any activity in the last 45 days despite being marked as feedback. + If this issue should be reconsidered, please reopen this it. + + Or, if you have any further questions, there are also + [further support channels](https://ask.openrouteservice.org/) + that can help you. + + + stale-issue-label: 'stale' + only-issue-labels: 'feedback' + days-before-issue-stale: 30 + days-before-issue-close: 45 + + # operations-per-run: 1000 \ No newline at end of file From 694f86411b0e07d97e2d472feae340d31391f463 Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Mon, 19 Aug 2024 09:47:31 +0200 Subject: [PATCH 2/7] fix: remove unnecessary pr lines --- .github/workflows/stale.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 97258001..82214733 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -17,11 +17,6 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-pr-label: 'stale' - # exempt-pr-labels: 'Merge After Thaw,Frozen' - days-before-pr-stale: 14 - days-before-pr-close: 7 - stale-issue-message: > The Openrouteservice project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 30 days and is From acfca24647075b98e413de0204d0ee886f1d1c34 Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Mon, 19 Aug 2024 09:52:18 +0200 Subject: [PATCH 3/7] style: add empty line at end --- .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 82214733..e228979f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -47,4 +47,4 @@ jobs: days-before-issue-stale: 30 days-before-issue-close: 45 - # operations-per-run: 1000 \ No newline at end of file + # operations-per-run: 1000 From c19d9ed323cb4dc9584bd4ff5c7770e7b658a6f2 Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Mon, 19 Aug 2024 09:55:43 +0200 Subject: [PATCH 4/7] style: remove placeholder comment --- .github/workflows/stale.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e228979f..81949b08 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -46,5 +46,3 @@ jobs: only-issue-labels: 'feedback' days-before-issue-stale: 30 days-before-issue-close: 45 - - # operations-per-run: 1000 From 27126c80c67aa40ed66734fc643a5b514e1dc2d8 Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Fri, 23 Aug 2024 09:09:19 +0200 Subject: [PATCH 5/7] style: remove glassses emoji Co-authored-by: Amandus --- .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 81949b08..3ce20aa7 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,4 +1,4 @@ -name: 👓 Handle stale issues +name: Handle stale issues on: schedule: - cron: "30 2 * * *" # Runs every day at 2:30 AM UTC From c574406ebd5b1e80a483c03eff4a08e2dfda4243 Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Fri, 23 Aug 2024 09:12:25 +0200 Subject: [PATCH 6/7] style: set days till close to 60 in text Co-authored-by: Amandus --- .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 3ce20aa7..16d9a6c0 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -34,7 +34,7 @@ jobs: close-issue-message: > While we hate to see this happen, this issue has been automatically closed because - it has not had any activity in the last 45 days despite being marked as feedback. + it has not had any activity in the last 60 days despite being marked as feedback. If this issue should be reconsidered, please reopen this it. Or, if you have any further questions, there are also From 686d885ee1144e9a68001a3c156401d45ffb89c0 Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Fri, 23 Aug 2024 09:13:20 +0200 Subject: [PATCH 7/7] feat: set days till close to 60 Co-authored-by: Amandus --- .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 16d9a6c0..c731fd5c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -45,4 +45,4 @@ jobs: stale-issue-label: 'stale' only-issue-labels: 'feedback' days-before-issue-stale: 30 - days-before-issue-close: 45 + days-before-issue-close: 60