Repository navigation
fix(ai-docs-sync): skip the pr author when requesting reviewers - #23
Merged
Merged
Conversation
Collaborator
Author
|
/ai-review |
Contributor
There was a problem hiding this comment.
AI review (claude-opus-5-5 + gpt-6-sol)
The change looks safe overall, but the log guard can throw if reviewers is absent from the configuration. Because this happens after the rolling branch is pushed, the publish step may stop before setting the commit status or moving the cursor. Use an empty-array fallback for the guard, consistent with reviewRequestFor.
0 critical, 0 other issue(s) shown (threshold: major).
API usage
| Call | Model | In | Cached | Out | Cost |
|---|---|---|---|---|---|
| reviewer-codex | gpt-6-sol | 7238 | 0 | 272 | $0.0172 |
| reviewer-claude | claude-opus-5-5 | 11073 | 0 | 1051 | $0.0653 |
| synthesizer | gpt-6-luna | 682 | 0 | 241 | $0.0002 |
Total ~$0.0827
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With a personal
DOCS_SYNC_TOKEN, the PR is authored by the token's user. When that user is also inreviewers, GitHub answers 422 ("Review cannot be requested from pull request author") and nobody gets requested (failing run).The publish stage now drops the PR author (case-insensitive) from the user reviewers before the request and logs it. Teams are unchanged.
How to test
npm test(new case intools/ai-docs-sync/test/publish.test.mjs).reviewers: the log showsNot requesting <login>: they authored the PRand the other reviewers are requested.