Fix label check on fork-submitted PRs#44
Conversation
|
Warning Review limit reached
Next review available in: 33 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Move label-check out of ci.yml into its own workflow on pull_request_target so it gets a write token on fork PRs; plain pull_request tokens are read-only there and the Apply Single Label step fails (see ApolloAutomation#43). Same fix the other product repos got in June. ci.yml permissions trimmed to contents: read since the CI build needs nothing more. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
db6c99e to
58e7163
Compare
Version: no bump (workflows only, does not publish)
What does this implement/fix?
Label check fails on fork-submitted PRs (e.g. #43: "Apply Single Label"
step) because it runs inside ci.yml under plain pull_request, which gets a
read-only token for forks. Moves it to a standalone workflow on
pull_request_target so it gets a write token, matching the fix already
rolled out to the other product repos in June (e.g. AIR-1). Safe because
the called workflow only reads the PR body and never checks out or executes
PR code; the shared workflow was hardened for pull_request_target callers
in ApolloAutomation/Workflows when the other repos switched. ci.yml
permissions are trimmed to contents: read since the build jobs need nothing
more.
Takes effect once merged to the default branch (pull_request_target runs
the base branch's workflow definition), so it won't turn #43 green
retroactively — #43 already has its label applied manually.
Types of changes
Checklist / Checklijst:
If user-visible functionality or configuration variables are added/modified:
🤖 Generated with Claude Code