Unverified 提交 e699d96a authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

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: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
上级 4aa7a011
......@@ -16,6 +16,7 @@ jobs:
steps:
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.PR_RW_GITHUB_TOKEN }}
script: |
const sevenDaysAgo = new Date();
sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论