From c6604158d50f9381845fd6fb8a231d12c5073efd Mon Sep 17 00:00:00 2001 From: MatteoGabriele Date: Fri, 17 Apr 2026 11:33:33 +0200 Subject: [PATCH 1/2] feat: add stale workflow --- .github/workflows/close-stale.yml | 68 +++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/close-stale.yml diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml new file mode 100644 index 0000000000..2fbe88e6d4 --- /dev/null +++ b/.github/workflows/close-stale.yml @@ -0,0 +1,68 @@ +name: Close Stale Issues and PRs + +on: + schedule: + # Run daily at 2 AM UTC + - cron: '0 2 * * *' + workflow_dispatch: # Allow manual trigger + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 30 + days-before-close: 14 + remove-stale-when-updated: true + stale-issue-label: 'stale' + stale-pr-label: 'stale' + close-issue-label: 'stale' + close-pr-label: 'stale' + stale-issue-message: | + Thank you for your contribution! 🙏 + + This issue has been inactive for 30 days and is now marked as stale. If there's no activity in the next 14 days, it will be closed to keep our repository tidy. + + **To keep this issue open**, feel free to: + - Leave a comment explaining your progress or needs + - Push a commit with updates + - Ask for help from maintainers + + We appreciate your interest in npmx and hope you'll continue contributing! 💙 + stale-pr-message: | + Thank you for your contribution! 🙏 + + This PR has been inactive for 30 days and is now marked as stale. If there's no activity in the next 14 days, it will be closed to keep our repository tidy. + + **To keep this PR open**, feel free to: + - Leave a comment explaining your progress or needs + - Push a commit with updates + - Ask for help from maintainers + + We appreciate your interest in npmx and hope you'll continue contributing! 💙 + close-issue-message: | + Thank you for your contribution! 🙏 + + Unfortunately, this issue has been marked as stale for 14 days without any updates and we're now closing it to keep our repository tidy. + + **If you'd like to continue working on this**, feel free to: + - Reopen this issue + - Leave a comment explaining your progress + + We appreciate your interest in npmx and hope you'll continue contributing! 💙 + close-pr-message: | + Thank you for your contribution! 🙏 + + Unfortunately, this PR has been marked as stale for 14 days without any updates and we're now closing it to keep our repository tidy. + + **If you'd like to continue working on this**, feel free to: + - Reopen this PR + - Leave a comment explaining your progress + + We appreciate your interest in npmx and hope you'll continue contributing! 💙 + operations-per-run: 100 From 26523a23d39207a9b2de4c6d87a6e925ff358da9 Mon Sep 17 00:00:00 2001 From: MatteoGabriele Date: Fri, 17 Apr 2026 11:39:21 +0200 Subject: [PATCH 2/2] refactor: use sha --- .github/workflows/close-stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml index 2fbe88e6d4..e4e0bd536d 100644 --- a/.github/workflows/close-stale.yml +++ b/.github/workflows/close-stale.yml @@ -14,7 +14,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v9 + - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 with: days-before-stale: 30 days-before-close: 14