From 1b9743b9a5e8de957e7e3c8024ebd4df4c9b03ca Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Mon, 2 Mar 2026 12:17:25 -0500 Subject: [PATCH 1/2] chore: Add stale bot for JS SDK repo --- .github/workflows/stale.yaml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/stale.yaml diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 000000000..a03d4148b --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,43 @@ +name: "Close stale issues and PRs" + +on: + schedule: + - cron: "0 0 * * *" + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 30 + days-before-pr-stale: 14 + days-before-close: 7 + stale-issue-label: stale + stale-pr-label: stale + close-issue-reason: not_planned + stale-issue-message: > + This issue has been automatically marked as stale because it has not + had recent activity. It will be closed in 7 days if no further + activity occurs. If this issue is still relevant, please leave a + comment or remove the stale label. Thank you for your contributions! + stale-pr-message: > + This pull request has been automatically marked as stale because it + has not had recent activity. It will be closed in 7 days if no + further activity occurs. If this PR is still relevant, please leave a + comment, push an update, or remove the stale label. Thank you for + your contributions! + close-issue-message: > + This issue was closed because it has been inactive for 37 days (30 + days of inactivity before being marked stale, plus 7 additional + days). If you believe this issue is still relevant, please feel free + to reopen it. Thank you! + close-pr-message: > + This pull request was closed because it has been inactive for 21 days + (14 days of inactivity before being marked stale, plus 7 additional + days). If this PR is still relevant, please feel free to reopen it. + Thank you! From 734727103146537f8a5a176af11f7c65335cdae9 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Mon, 2 Mar 2026 15:31:45 -0500 Subject: [PATCH 2/2] don't close issues --- .github/workflows/stale.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index a03d4148b..2dd11df1b 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -16,14 +16,13 @@ jobs: with: days-before-stale: 30 days-before-pr-stale: 14 - days-before-close: 7 + days-before-close: -1 + days-before-pr-close: 7 stale-issue-label: stale stale-pr-label: stale - close-issue-reason: not_planned stale-issue-message: > This issue has been automatically marked as stale because it has not - had recent activity. It will be closed in 7 days if no further - activity occurs. If this issue is still relevant, please leave a + had recent activity. If this issue is still relevant, please leave a comment or remove the stale label. Thank you for your contributions! stale-pr-message: > This pull request has been automatically marked as stale because it @@ -31,11 +30,6 @@ jobs: further activity occurs. If this PR is still relevant, please leave a comment, push an update, or remove the stale label. Thank you for your contributions! - close-issue-message: > - This issue was closed because it has been inactive for 37 days (30 - days of inactivity before being marked stale, plus 7 additional - days). If you believe this issue is still relevant, please feel free - to reopen it. Thank you! close-pr-message: > This pull request was closed because it has been inactive for 21 days (14 days of inactivity before being marked stale, plus 7 additional