From 4604f349e47c04bffcb6770db32a4defd1aea6d0 Mon Sep 17 00:00:00 2001 From: Axell Padilla <68310020+axellpadilla@users.noreply.github.com> Date: Thu, 14 May 2026 08:05:46 +0000 Subject: [PATCH 1/2] chore: Add weekly stale cleanup workflow --- .github/workflows/stale.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 000000000..aec4ab83a --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,38 @@ +--- +name: Close stale issues and PRs +on: # yamllint disable-line rule:truthy + workflow_dispatch: + schedule: + - cron: 30 1 * * 1 # Every Monday at 1:30 AM UTC +permissions: + issues: write + pull-requests: write +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v10 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-issue-stale: 365 + days-before-pr-stale: 365 + days-before-issue-close: 30 + days-before-pr-close: 30 + stale-issue-message: >- + This issue is stale because it has had no activity for 365 days. + Please confirm whether it is still relevant. If there is no response, + it will be closed in 30 days. + stale-pr-message: >- + This pull request is stale because it has had no activity for 365 days. + Please confirm whether it is still relevant. If there is no response, + it will be closed in 30 days. + close-issue-message: >- + Closing this issue due to inactivity. Please reopen or create a new issue + if this is still needed. + close-pr-message: >- + Closing this pull request due to inactivity. Please reopen or create a + new + pull request if this is still needed. + stale-issue-label: stale + stale-pr-label: stale + close-issue-reason: not_planned From 62057d3b89335f4b0ca6a90bfa65dc6cacc62df0 Mon Sep 17 00:00:00 2001 From: Axell Padilla <68310020+axellpadilla@users.noreply.github.com> Date: Thu, 14 May 2026 08:53:19 -0600 Subject: [PATCH 2/2] Refactor close-pr-message in stale.yml Removed unnecessary line breaks in close-pr-message. --- .github/workflows/stale.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index aec4ab83a..d19337e5b 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -31,8 +31,7 @@ jobs: if this is still needed. close-pr-message: >- Closing this pull request due to inactivity. Please reopen or create a - new - pull request if this is still needed. + new pull request if this is still needed. stale-issue-label: stale stale-pr-label: stale close-issue-reason: not_planned