fix: use autolabeler sub-action for PR labeling (release-drafter v7)#541
fix: use autolabeler sub-action for PR labeling (release-drafter v7)#541
Conversation
Since release-drafter v7, the main action tries to update the draft release
on every trigger, including pull_request events. When triggered by a PR, it
sets target_commitish to refs/pull/N/merge which GitHub's API rejects:
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
This broke every PR's Release Drafter job after Dependabot bumped from
v6.3.0 to v7.1.1 in #521 (2026-03-31).
v7 splits autolabeling into a dedicated sub-action:
release-drafter/release-drafter/autolabeler@SHA
Switch the label-prs job to use that sub-action; update the stale
# v6 comments on all three jobs to # v7.1.1.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 48 minutes and 23 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
|
Claude finished @jnewton03's task in 24s —— View job Code ReviewLGTM - no significant issues found. This is a correct fix for the release-drafter v7 compatibility issue:
|
Summary
Fixes the Release Drafter
label-prsjob failing on every PR since 2026-03-31.Root cause: Dependabot PR #521 bumped release-drafter from v6.3.0 to v7.1.1 but
left the comment as
# v6, masking the version change. In v7, the mainrelease-drafter/release-drafteraction tries to update the draft release on everytrigger — including
pull_requestevents. When triggered by a PR it setstarget_commitishtorefs/pull/N/merge, which GitHub's release API rejects:Fix: Switch the
label-prsjob from the main action to the dedicated autolabelersub-action that v7 introduced for PR events:
Also corrects the stale
# v6comments on all three jobs to# v7.1.1.What isn't changed
139054aa…) throughout — no version bump, just using the right sub-actiondraft-communityanddraft-securejobs are unchanged in behaviorrelease-drafter.yml,release-drafter-secure.yml) untouchedTest plan
label-prscheck passes (was failing before)draft-communityanddraft-securestill update the v5.2.0 draft on push to main🤖 Generated with Claude Code