From a023b359d7cfe51eb33937149112142ae0ce0091 Mon Sep 17 00:00:00 2001 From: Jakub Romanczyk Date: Fri, 1 Nov 2024 17:34:47 +0100 Subject: [PATCH 1/4] chore: change to status:stale label --- .github/workflows/{close-stale.yml => stale-bot.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{close-stale.yml => stale-bot.yml} (93%) diff --git a/.github/workflows/close-stale.yml b/.github/workflows/stale-bot.yml similarity index 93% rename from .github/workflows/close-stale.yml rename to .github/workflows/stale-bot.yml index 230390ae6..bf02ef029 100644 --- a/.github/workflows/close-stale.yml +++ b/.github/workflows/stale-bot.yml @@ -16,6 +16,6 @@ jobs: stale-pr-message: 'This pull request has been marked as stale because it has been inactive for 60 days. Please update this pull request or it will be automatically closed in 14 days.' close-issue-message: 'This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context.' close-pr-message: 'This pull request has been automatically closed because it has been inactive for more than 14 days. Please reopen if you still intend to submit this pull request.' - stale-pr-label: stale - stale-issue-label: stale + stale-pr-label: status:stale + stale-issue-label: status:stale From b9e5916b93b23528c3cd07beaa1f17ad9cea8cc9 Mon Sep 17 00:00:00 2001 From: Jakub Romanczyk Date: Fri, 1 Nov 2024 17:35:19 +0100 Subject: [PATCH 2/4] chore: rename to stale bot --- .github/workflows/stale-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index bf02ef029..5461c7ccb 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -1,4 +1,4 @@ -name: Close Stale Issues +name: Stale bot on: schedule: - cron: '0 0 * * *' # Run every day at midnight From 13e3d191f822067f8a8bfacb58d791c2b919fdc4 Mon Sep 17 00:00:00 2001 From: Jakub Romanczyk Date: Fri, 1 Nov 2024 17:36:00 +0100 Subject: [PATCH 3/4] chore: run stale-bot only in repack repo --- .github/workflows/stale-bot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 5461c7ccb..f2e649db7 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -5,6 +5,7 @@ on: jobs: close_stale_prs: runs-on: ubuntu-latest + if: github.repository == 'callstack/repack' steps: - name: Close stale pull requests uses: actions/stale@v9 From 2d06cb5f3c7e419aee4667cf3d2fd67fa5d73151 Mon Sep 17 00:00:00 2001 From: Jakub Romanczyk Date: Fri, 1 Nov 2024 18:21:54 +0100 Subject: [PATCH 4/4] chore: update stale-bot config --- .github/workflows/stale-bot.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index f2e649db7..ee2026c8f 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -3,20 +3,23 @@ on: schedule: - cron: '0 0 * * *' # Run every day at midnight jobs: - close_stale_prs: + stale: runs-on: ubuntu-latest if: github.repository == 'callstack/repack' steps: - - name: Close stale pull requests + - name: Close stale issues & pull requests uses: actions/stale@v9 with: days-before-stale: 30 - days-before-pr-close: 60 days-before-close: 14 stale-issue-message: 'This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.' - stale-pr-message: 'This pull request has been marked as stale because it has been inactive for 60 days. Please update this pull request or it will be automatically closed in 14 days.' + stale-pr-message: 'This pull request has been marked as stale because it has been inactive for 30 days. Please update this pull request or it will be automatically closed in 14 days.' close-issue-message: 'This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context.' close-pr-message: 'This pull request has been automatically closed because it has been inactive for more than 14 days. Please reopen if you still intend to submit this pull request.' stale-pr-label: status:stale stale-issue-label: status:stale + labels-to-remove-when-unstale: status:stale + remove-stale-when-updated: true + exempt-issue-labels: pinned + exempt-pr-labels: pinned