From 266e1fe0763f7339032118c9d9d278b2ddf79d3f Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Sat, 22 Nov 2025 00:03:49 -0800 Subject: [PATCH 1/2] Add workflow to manage stale issues and PRs Introduces a GitHub Actions workflow that automatically marks issues and pull requests as stale after 180 days of inactivity and closes them after an additional 60 days. This helps keep the repository clean and maintainable by prompting action on inactive items. --- .github/workflows/stale.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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 0000000..62422b2 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,34 @@ +# This workflow warns and then closes issues that have had no activity for a specified amount of time. +# https://github.com/actions/stale + +name: Manage stale issues + +on: + workflow_dispatch: + schedule: + # 00:00 UTC on Mondays + - cron: '0 0 * * 1' + +permissions: + issues: write + pull-requests: write + +env: + DAYS_BEFORE_STALE: 180 + DAYS_BEFORE_CLOSE: 60 + STALE_LABEL: 'stale' + STALE_LABEL_URL: ${{github.server_url}}/${{github.repository}}/labels/stale + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v10 + with: + operations-per-run: 100 + days-before-stale: ${{ env.DAYS_BEFORE_STALE }} + days-before-close: ${{ env.DAYS_BEFORE_CLOSE }} + stale-issue-label: ${{ env.STALE_LABEL }} + stale-pr-label: ${{ env.STALE_LABEL }} + stale-issue-message: 'This issue has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this issue if it is no longer needed. If this issue is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.' + stale-pr-message: 'This pull request has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this pull request if it is no longer needed. If this pull request is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.' From 6d229e671113bcb38ab5dbe1b1614afbcd8dc0ff Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Sat, 22 Nov 2025 00:05:30 -0800 Subject: [PATCH 2/2] Rename workflow to 'Stale' in stale.yml Changed the workflow name from 'Manage stale issues' to 'Stale' for brevity. --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 62422b2..e1cf89b 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,7 +1,7 @@ # This workflow warns and then closes issues that have had no activity for a specified amount of time. # https://github.com/actions/stale -name: Manage stale issues +name: Stale on: workflow_dispatch: