Use PR_RW_GITHUB_TOKEN for draft-stale-prs workflow (#2608)
## Summary
- The `draft-stale-prs` workflow was failing with "Resource not
accessible by integration" when trying to convert fork PRs to draft via
the GraphQL `convertPullRequestToDraft` mutation
- The default `GITHUB_TOKEN` lacks the necessary cross-repo permissions
for this operation
- Switch to the `PR_RW_GITHUB_TOKEN` secret which has the required
permissions
#skip-bugbot
## Test plan
- Trigger the workflow manually via `workflow_dispatch` and verify fork
PRs are successfully converted to draft without "Resource not accessible
by integration" errors
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2608"
target="_blank">
<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 -->
Co-authored-by:
Claude Opus 4.6 <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论