Add workflow to close stale PRs older than 2 months (#2474)
## Summary
- Adds a new GitHub Action (`close-stale-prs.yml`) that runs daily at
midnight UTC
- Automatically closes open PRs that were created more than 2 months ago
- Leaves a friendly comment before closing each stale PR
## Test plan
- Verify the workflow YAML is valid by checking the Actions tab after
merge
- Can be manually triggered via `workflow_dispatch` to test behavior
#skip-bugbot
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2474">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds a scheduled GitHub Action to automatically close open PRs older
than 2 months and post a comment, keeping the backlog tidy. Runs daily
at midnight UTC.
- **New Features**
- Adds .github/workflows/close-stale-prs.yml using
actions/github-script@v7
- Requires pull-requests: write permission
- Supports manual runs via workflow_dispatch
- Logs closed PRs to workflow output
<sup>Written for commit 6687ed758e6104e8cde06895a021b121283aea71.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by:
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
正在显示
请
注册
或者
登录
后发表评论