Add auto-assign reviewers workflow - #6
Conversation
- Configures kentaro-m/auto-assign-action@v2.0.2 - Automatically assigns carochacs as reviewer on all PRs - Sets PR creator as assignee Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011RQnPatXgn3E1gkQVcQAiD
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Ensures reviewers are assigned when draft PRs are marked as ready for review.
…with: parameters The kentaro-m/auto-assign-action@v2.0.2 reads config from .github/auto_assign.yml and doesn't accept the with: parameters we were passing. This commit: - Creates .github/auto_assign.yml with proper configuration - Removes invalid with: parameters from workflow - Workflow now uses config file instead of inline parameters
There was a problem hiding this comment.
Caution
This workflow will fail on every PR run: at v2.0.2 kentaro-m/auto-assign-action loads its configuration exclusively from a YAML file at configuration-path (default .github/auto_assign.yml), which does not exist in this repo. The with: inputs in this PR are never read, so each run ends with the configuration file is not found and no reviewer or assignee is ever set.
Reviewed changes
Added .github/workflows/auto-assign-reviewers.yml: a pull_request (opened/reopened/ready_for_review) workflow that runs kentaro-m/auto-assign-action@v2.0.2 with pull-requests: write, intending to auto-assign carochacs as reviewer and the PR author as assignee.
Big Pickle (free) | 𝕏
There was a problem hiding this comment.
ℹ️ Minor suggestions only.
Reviewed changes
The critical finding from the prior review is resolved. Commit 3647142 adds .github/auto_assign.yml with the reviewer/assignee configuration and removes the dead with: block, so kentaro-m/auto-assign-action@v2.0.2 now reads a config file it actually loads (its default configuration-path). The workflow now works as intended: the PR author is set as assignee, and carochacs is requested as reviewer on PRs opened by other contributors.
Big Pickle (free) | 𝕏
| addReviewers: true | ||
| addAssignees: author | ||
| reviewers: | ||
| - carochacs |
There was a problem hiding this comment.
One nuance worth knowing: the action filters the PR author out of reviewer candidates (chooseUsers in the action source), so carochacs is requested as reviewer only on PRs opened by someone else. On self-authored PRs the reviewer auto-assign is a no-op and only the assignee side (addAssignees: author) applies, so the description's claim of assigning carochacs on all opened/reopened PRs holds only for third-party PRs.
…-assign-action Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011RQnPatXgn3E1gkQVcQAiD
There was a problem hiding this comment.
ℹ️ No new issues found — the permissions fix is correct and complete.
Reviewed changes
- Fixed the
assign-reviewersjob permissions: addedcontents: readandissues: writeto thepermissions:block alongside the existingpull-requests: write.
Because the job declares an explicit permissions: block, every unlisted scope was previously none, so the workflow would have failed on every run before this commit. Verified against kentaro-m/auto-assign-action@v2.0.2 source: repos.getContent (config fetch at the PR head SHA) requires contents: read, issues.addAssignees (the addAssignees: author step) requires issues: write, and pulls.requestReviewers already had its scope. Nothing is missing and nothing is extra — repo-token defaults to ${{ github.token }}, and no actions/checkout is needed since the config is fetched via the API.
Big Pickle (free) | 𝕏
|
Review #4928169099 contained 0 comment threads — the review body concluded "No new issues found — the permissions fix is correct and complete." I verified the branch ( Task list (5/5 completed)
|

Summary
Adds GitHub Actions workflow to automatically assign reviewers to pull requests.
Changes
kentaro-m/auto-assign-action@v2.0.2workflowcarochacsas reviewer on all opened/reopened PRsaddAssignees: authorGenerated by Claude Code