From 9b76875169c03e9b01ae6949a2f1ce577914027d Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 5 May 2025 16:01:20 +0200 Subject: [PATCH 1/7] stale.yml --- .github/workflows/stale.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..7afe6692 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +name: Close inactive issues + +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + if: github.repository == 'gitroomhq/postiz-app' + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 90 + days-before-issue-close: 7 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + exempt-issue-labels: "no-stale-bot" + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 6608b18ccd6499a3915d582dce608b334158457b Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 5 May 2025 17:02:59 +0200 Subject: [PATCH 2/7] stale.yml --- .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 7afe6692..09b4f56e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,8 +1,9 @@ name: Close inactive issues on: + workflow_dispatch: schedule: - - cron: "30 1 * * *" + - cron: "*/30 * * * *" jobs: close-issues: From af3ce01d10186d06e642901161550b0624fe261f Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 5 May 2025 17:15:15 +0200 Subject: [PATCH 3/7] stale.yml Fiy --- .github/workflows/stale.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 09b4f56e..1b7c3656 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -18,9 +18,9 @@ jobs: days-before-issue-stale: 90 days-before-issue-close: 7 stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." - days-before-pr-stale: -1 - days-before-pr-close: -1 + stale-issue-message: "This issue / PR is stale because it has been open for 90 days with no activity." + close-issue-message: "This issue / PR was closed because it has been inactive for 7 days since being marked as stale." + days-before-pr-stale: 90 + days-before-pr-close: 7 exempt-issue-labels: "no-stale-bot" repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 08b93562dcdfc783a9d702d412d89f71f4b8e389 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 5 May 2025 17:21:13 +0200 Subject: [PATCH 4/7] Aktualisieren von stale.yml --- .github/workflows/stale.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1b7c3656..d820a576 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -18,9 +18,10 @@ jobs: days-before-issue-stale: 90 days-before-issue-close: 7 stale-issue-label: "stale" - stale-issue-message: "This issue / PR is stale because it has been open for 90 days with no activity." - close-issue-message: "This issue / PR was closed because it has been inactive for 7 days since being marked as stale." + stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." days-before-pr-stale: 90 days-before-pr-close: 7 exempt-issue-labels: "no-stale-bot" - repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + repo-token: ${{ secrets.GITHUB_TOKEN }} + operations_per_run: 30 \ No newline at end of file From aae9551b5f154d8bde0c67b281c40b67b79b2b18 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 5 May 2025 17:28:11 +0200 Subject: [PATCH 5/7] Aktualisieren von stale.yml --- .github/workflows/stale.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index d820a576..fa2d6f0a 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -19,9 +19,15 @@ jobs: days-before-issue-close: 7 stale-issue-label: "stale" stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." + close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." + exempt-issue-labels: "no-stale-bot" + days-before-pr-stale: 90 days-before-pr-close: 7 - exempt-issue-labels: "no-stale-bot" + stale-pr-label: "stale" + stale-pr-message: "This PR is stale because it has been open for 90 days with no activity." + close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale." + exempt-pr-label: "no-stale-bot" + repo-token: ${{ secrets.GITHUB_TOKEN }} operations_per_run: 30 \ No newline at end of file From a8ecd1422728d501d72ec4038f8bf7e10b54a92b Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 5 May 2025 17:28:52 +0200 Subject: [PATCH 6/7] Update stale.yml --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index fa2d6f0a..ff2432d6 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -20,7 +20,7 @@ jobs: stale-issue-label: "stale" stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." - exempt-issue-labels: "no-stale-bot" + exempt-issue-labels: "no-stale-bot" days-before-pr-stale: 90 days-before-pr-close: 7 @@ -30,4 +30,4 @@ jobs: exempt-pr-label: "no-stale-bot" repo-token: ${{ secrets.GITHUB_TOKEN }} - operations_per_run: 30 \ No newline at end of file + operations_per_run: 30 From c4dc5f11d913c58626d93479b0e3c1e884936bcc Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 5 May 2025 21:47:55 +0200 Subject: [PATCH 7/7] Aktualisieren von stale.yml --- .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 ff2432d6..2f1d1dbd 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -30,4 +30,4 @@ jobs: exempt-pr-label: "no-stale-bot" repo-token: ${{ secrets.GITHUB_TOKEN }} - operations_per_run: 30 + operations_per_run: 90