Compare commits

...

2 Commits

Author SHA1 Message Date
Claude Bot
46aaa3ecf0 fix: increase robobun PR query limit from 200 to 1000
There are 500+ open robobun PRs. The previous limit of 200 was missing
the oldest ones which are the ones we actually want to close.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-19 08:18:45 +00:00
Claude Bot
cd3dba043c Add workflow to close stale robobun PRs older than 90 days
Runs daily at 12:30 AM UTC. Finds all open PRs authored by robobun
that haven't been updated in over 90 days and closes them with a comment.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-19 08:15:17 +00:00

View File

@@ -0,0 +1,30 @@
name: Close stale robobun PRs
on:
schedule:
- cron: "30 0 * * *"
workflow_dispatch:
jobs:
close-stale-robobun-prs:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
steps:
- name: Close stale robobun PRs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
ninety_days_ago=$(date -u -d '90 days ago' +%Y-%m-%dT%H:%M:%SZ)
gh pr list \
--author robobun \
--state open \
--json number,updatedAt \
--limit 1000 \
--jq ".[] | select(.updatedAt < \"$ninety_days_ago\") | .number" |
while read -r pr_number; do
echo "Closing PR #$pr_number (last updated before $ninety_days_ago)"
gh pr close "$pr_number" --comment "Closing this PR because it has been inactive for more than 90 days."
done