Skip to content

fix: add issues:write permission to PR labeler workflow#27

Merged
shenxianpeng merged 1 commit into
mainfrom
fix/pr-labeler-issues-write-permission
Jul 6, 2026
Merged

fix: add issues:write permission to PR labeler workflow#27
shenxianpeng merged 1 commit into
mainfrom
fix/pr-labeler-issues-write-permission

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Jul 6, 2026

Copy link
Copy Markdown
Member

Problem

The release-drafter/release-drafter/autolabeler action fails with a 403 error when trying to add labels to pull requests:

Error: Resource not accessible by integration

GitHub's PR label functionality uses the Issues API under the hood (POST /repos/{owner}/{repo}/issues/{issue_number}/labels), which requires the issues: write permission. The current workflow only has pull-requests: write, which is insufficient.

Fix

Add issues: write to the permissions block in pr-labeler.yml.

History

  • bae071f — First added issues: write (fix)
  • 92d9987 — Reverted, removing issues: write
  • The recent config change in release-drafter.yml triggered the autolabeler on new scenarios (e.g. pre-commit bot PRs), exposing this pre-existing permission issue.

The release-drafter autolabeler adds labels to pull requests via the
GitHub Issues API (POST /repos/{owner}/{repo}/issues/{issue_number}/labels),
which requires 'issues: write' permission in addition to 'pull-requests: write'.

This was previously fixed in bae071f but reverted in 92d9987.
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@shenxianpeng, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 42 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3be499a4-9f8e-4a44-96aa-53b47f41586b

📥 Commits

Reviewing files that changed from the base of the PR and between 57e126f and 55fc3b8.

📒 Files selected for processing (1)
  • .github/workflows/pr-labeler.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pr-labeler-issues-write-permission

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Commit-Check ✔️

@shenxianpeng shenxianpeng added the bug Something isn't working label Jul 6, 2026
@shenxianpeng shenxianpeng merged commit b4bc08f into main Jul 6, 2026
3 checks passed
@shenxianpeng shenxianpeng deleted the fix/pr-labeler-issues-write-permission branch July 6, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant