From daf36b28fd96724b770faa974f215c1495adea21 Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Mon, 29 Aug 2022 19:25:50 +0200 Subject: [PATCH 1/4] ci: close stale issues and PRs --- .github/workflows/stale.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..d52d8702 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,19 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v5 + with: + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-pr-message: 'This PR was closed because it has been stalled for 5 days with no activity.' + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + days-before-stale: 30 + days-before-close: 5 + exempt-issue-labels: 'future,improvement,bug' + exempt-pr-labels: 'need-help,wip' \ No newline at end of file From 350c73d78e932328bdacf720bb9a434f89e96141 Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Mon, 29 Aug 2022 19:38:30 +0200 Subject: [PATCH 2/4] ci: fix stale action permissions --- .github/workflows/stale.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index d52d8702..5e9d1b70 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,4 +1,8 @@ name: 'Close stale issues and PRs' +permissions: + issues: write + pull-requests: write + on: schedule: - cron: '30 1 * * *' From db0a23aec030409c6591b21aee27e9f94109a56a Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Mon, 29 Aug 2022 20:02:13 +0200 Subject: [PATCH 3/4] chore: fix exempt-issue-labels of the stale action --- .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 5e9d1b70..e3235413 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -19,5 +19,5 @@ jobs: close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' days-before-stale: 30 days-before-close: 5 - exempt-issue-labels: 'future,improvement,bug' + exempt-issue-labels: 'feature ☘,enhancement ⚙,bug 🐞' exempt-pr-labels: 'need-help,wip' \ No newline at end of file From c1e6d5869acf32cda22fa7dd532ebb6130061b7b Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Tue, 30 Aug 2022 10:18:12 +0200 Subject: [PATCH 4/4] ci: increase operations-per-run param to 100 --- .github/workflows/stale.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e3235413..60c6ae5e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -20,4 +20,5 @@ jobs: days-before-stale: 30 days-before-close: 5 exempt-issue-labels: 'feature ☘,enhancement ⚙,bug 🐞' - exempt-pr-labels: 'need-help,wip' \ No newline at end of file + exempt-pr-labels: 'need-help,wip' + operations-per-run: 100 \ No newline at end of file