Add close-issues script and GitHub Action

- Create script/github/close-issues.ts to close stale issues after 60 days
- Add GitHub Action workflow to run daily at 2 AM
- Remove old stale-issues workflow to avoid conflicts
This commit is contained in:
Dax Raad
2026-03-24 23:50:35 -04:00
parent 958a80cc05
commit 79e9d19019
3 changed files with 115 additions and 34 deletions

23
.github/workflows/close-issues.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: close-issues
on:
schedule:
- cron: "0 2 * * *" # Daily at 2:00 AM
workflow_dispatch:
jobs:
close:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Close stale issues
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun script/github/close-issues.ts