GitHub stale CI pull request closer

SkillDev tools

Warn and close abandoned pull requests whose required CI remains failing.

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the GitHub stale CI pull request closer skill

What this skill tells your AI

The instructions your AI receives, as published by openhands/extensions in skills/github-stale-ci-pr-closer/SKILL.md and read by ahel’s review.

This deterministic scheduled automation scans every open, non-draft pull request in its configured repositories. It reads the required status checks from the GitHub rules that apply to the pull request's base branch.

  • After required CI remains failing for seven days, it posts one marked warning.
  • After seven more days, it closes the pull request only when required CI still fails and the author has neither pushed nor commented since the warning.
  • Passing or pending CI, a draft conversion, closure, merge, or author follow-up cancels the pending close. Continued failure starts a fresh warning window.

The automation creates no agent or conversation. Configure a repository-scoped fine-grained PAT with Metadata: Read, Actions: Read, Commit statuses: Read, Issues: Read and Write, and Pull requests: Read and Write. The token also needs read access to repository rules. Package scripts/worker.py as worker.py and the shared skills/github/scripts/github_client.py as github_client.py.

Signals

GitHub stars
151
Forks
95
Last commit
Sep 2026

ahel review

  • S4info
    community integration, published by openhands, not github

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Item type
skill
Key
github-stale-ci-pr-closer
Source
github.com/openhands/extensions