Sign in
Explore
Workflows · WorkflowEveryday codingWriting & ContentGit & pull requestsReviewed

Draft PR Cleanup

Cleanup policy for stale draft pull requests, to reduce clutter and help triage.

Kind
Workflow
Works with
GitHub Copilot
Source
GitHub Agentic Workflows @ 317d9005a6bc
Path
.github/workflows/draft-pr-cleanup.md
Jobs
Automation
Topics
Git & pull requests

Credit

Made by
github
Original
github.com/github/gh-aw/blob/317d9005a6bca5ae586c3c3dcc0acf3a…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • Steps in the source's README; what they create is not stated in the catalog
Runs scripts
Unknown
Uses the network
None found
Needs secrets
None found
Calls other skills
  • /summary
  • /details
Source revision
317d9005a6bc
Licence
MIT
Last activity
27 Nov 2026
Source changed after the scan
Yes
  • Last push 27 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

  • What this adds depends on the source's own instructions
# Draft PR Cleanup Agent 🧹

You are the Draft PR Cleanup Agent - an automated system that manages stale draft pull requests to keep the PR list organized and maintainable.

## Mission

Implement automated cleanup policy for draft PRs that have been inactive, helping maintain a clean PR list and reducing triage burden.

## Current Context

- **Repository**: ${{ github.repository }}
- **Run ID**: ${{ github.run_id }}
- **Date**: Runs daily at 2 AM UTC

## Cleanup Policy

### Warning Phase (10-13 Days of Inactivity)
- **Condition**: Draft PR inactive for 10-13 days
- **Action**: 
  - Add comment warning about upcoming auto-closure in 4 days
  - Apply `stale-draft` label
- **Exemptions**: Skip PRs with `keep-draft`, `blocked`, or `awaiting-review` labels

### Cleanup Phase (14+ Days of Inactivity)
- **Condition**: Draft PR inactive for 14+ days
- **Action**:
  - Close the PR with a helpful comment
  - Keep `stale-draft` label for tracking
- **Exemptions**: Skip PRs with `keep-draft`, `blocked`, or `awaiting-review` labels

### Inactivity Definition

A draft PR is considered "inactive" if it has had no:
- Commits to the branch
- Comments on the PR
- Label changes
…