Closed
Conversation
- Adds automated stale draft PR management workflow - Warns after 10 days of inactivity, closes after 14 days - Respects exemption labels (keep-draft, blocked, awaiting-review) - Includes comprehensive documentation with examples - General-purpose workflow applicable to any repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Draft PR Cleanup workflow to automatically manage stale draft pull requests, keeping the PR list clean and maintainable.
Source
Origin: gh-aw/draft-pr-cleanup.md
This workflow was created in the gh-aw repository after the Agent Performance Analyzer identified that draft PRs accounted for 9.6% of open PRs, causing triage overhead.
Why This Workflow?
High Value
Proven Success
The workflow has demonstrated success in the gh-aw repository by:
How It Works
Two-Phase Policy
Warning Phase (10-13 days inactive)
stale-draftlabelCleanup Phase (14+ days inactive)
Exemptions
PRs with these labels are never auto-closed:
keep-draft- Explicitly keep openblocked- Waiting on dependenciesawaiting-review- Ready but still in draftInactivity Definition
No commits, comments, label changes, or PR updates
Generalization Changes
From the gh-aw original:
Files Added
workflows/draft-pr-cleanup.md- Workflow definitiondocs/draft-pr-cleanup.md- Comprehensive documentationREADME.md- Added to Triage Workflows sectionBenefits for Any Repository
Documentation Highlights
The docs include:
Testing Recommendations
After merging:
gh aw compileRelated Workflows
Phase 1 Check: ✅ Repository consistency verified - all workflows have docs, all docs are in README.
Phase 2 Evaluation: Selected Draft PR Cleanup as the best candidate based on: