Add auto-assign reviewers workflow - #1
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
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 PR's workflow fails on every pull request event: kentaro-m/auto-assign-action@v2.0.2 ignores the with: inputs and loads its configuration from .github/auto_assign.yml, which doesn't exist in this repo — the job errors out with a 404 Not Found before assigning anything.
Reviewed changes
- Auto-assign reviewers workflow — new
.github/workflows/auto-assign-reviewers.ymlrunskentaro-m/auto-assign-action@v2.0.2onpull_requestopened/reopened/ready_for_review, intending to request review fromcarochacsand assign the PR author.
Big Pickle (free) | 𝕏
| with: | ||
| addReviewers: 'true' | ||
| addAssignees: 'author' | ||
| reviewers: 'carochacs' | ||
| numberOfReviewers: '0' |
There was a problem hiding this comment.
These four inputs are ignored: kentaro-m/auto-assign-action@v2.0.2 declares only repo-token and configuration-path in its action.yml, and its run.ts loads configuration exclusively from .github/auto_assign.yml. That file doesn't exist in this repo, so every PR run fails with a 404 Not Found before any assignment happens.
| with: | ||
| addReviewers: 'true' | ||
| addAssignees: 'author' | ||
| reviewers: 'carochacs' |
There was a problem hiding this comment.
Requesting carochacs as a reviewer will never take effect: the action filters the PR author out of the reviewer candidate list (chooseUsers in src/utils.ts), and GitHub rejects review requests to the author outright (see kentaro-m/auto-assign-action#11). With carochacs authoring every PR here, this reviewer assignment is inert — the workflow will only ever assign the author as assignee.
…-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.
Important
The config fix is correct — .github/auto_assign.yml now exists and the invalid with: block is gone, resolving the previously-blocking config-load failure. One gap remains: the addAssignees: author step calls POST /issues/{n}/assignees, which GitHub's endpoint→permission mapping places under the issues permission, not pull-requests. With only pull-requests: write granted, that call is rejected; since the action catches and logs the error as a warning, the job still passes while silently never assigning the author.
Reviewed changes (delta since prior review 773e4b0)
- Add config file, drop invalid inputs — new
.github/auto_assign.yml(addReviewers: true,addAssignees: author,reviewers: [carochacs],numberOfReviewers: 0) and removal of the four undeclaredwith:keys from.github/workflows/auto-assign-reviewers.yml.
Big Pickle (free) | 𝕏
| @@ -0,0 +1,6 @@ | |||
| # Auto-assign configuration for kentaro-m/auto-assign-action | |||
| addReviewers: true | |||
| addAssignees: author | |||
There was a problem hiding this comment.
addAssignees: author maps to POST /issues/{issue_number}/assignees, which GitHub's endpoint→permission list assigns to the issues permission rather than pull-requests. This job grants only pull-requests: write, so the assignee call is rejected with Resource not accessible by integration — the action logs it as a warning and the job still passes, so the author-assignment half silently never happens. Add issues: write to the job permissions: block if the assignee behavior is wanted.
There was a problem hiding this comment.
ℹ️ The permissions fix is complete and correct —
contents: read(the action fetches the config file via the contents API at the head ref),issues: write(assignee endpoint), andpull-requests: write(reviewer endpoint) are exactly the three scopeskentaro-m/auto-assign-action@v2.0.2needs. No new issues in this commit.
Reviewed changes (delta since prior review 619194a)
- Grant full permission set — job
permissions:now addscontents: readandissues: writealongsidepull-requests: write.
Big Pickle (free) | 𝕏
|
Review 4928149941 contains 0 review threads — the review body is a clean bill for the permissions fix ( Task list (1/7 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