From ad7c4c4cc618d17b133355931adb89ac2a233635 Mon Sep 17 00:00:00 2001 From: Alex | Cosmos Labs Date: Fri, 31 Oct 2025 16:09:54 -0400 Subject: [PATCH] Add stale.yml workflow to manage stale issues and PRs This workflow automatically closes stale issues and pull requests after a specified period of inactivity. --- .github/workflows/stale.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 0000000000..960fb7cc5e --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,21 @@ +name: "Close stale issues & pull requests" +on: + schedule: + - cron: "0 0 * * *" +permissions: read-all + +jobs: + stale: + permissions: + pull-requests: write # For reading the PR and adding the label + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + 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-before-close if no further activity occurs." + stale-issue-message: "This issue is stale because it has been open 45 days with no activity. Remove `Status: Stale` label or comment or this will be closed in 7 days." + days-before-stale: 45 + days-before-close: 7 + stale-pr-label: "Status: Stale" + stale-issue-label: "Status: Stale"