Repository navigation
feat: add external draft reviews with human handoff - #28
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0255b594bb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
A reviewer can run Docker externally for a selected Gitea/Forgejo repository and PR, let AI prepare pending line comments under their own account, then edit and submit the review through the native UI. The target repository needs no workflow or checkout. Default
submitbehavior remains available.Fixes #27.
Behavior and safeguards
REVIEW_MODE=draftforces nativePENDING, regardless of the model's recommendation.REVIEW_OUTPUT_DIRfor the Markdown summary, structured analysis and recovery state.Try it
This change is now merged and available in
ghcr.io/ccsert/opencode-review:latest. Use the published-image instructions to try it directly. The commands below build a local development image.Sign in as the token's account, open the returned Files page, edit pending comments, copy the exported Markdown summary into the review form, and manually choose Comment/Approve/Request Changes. The summary form is not prefilled.
The usage guide includes custom OpenAI-compatible gateway configuration, persistent-state recovery and concurrency limits. Both READMEs now introduce the external workflow.
Local validation
pulls.read:user,write:repositoryandwrite:issuecompleted production draft runs on both servers.Screenshots and compatibility
Pending comments belong to the human reviewer's account:
After manual submission, another ordinary collaborator can read the result:
Gitea 1.24.6 can remove the exact placeholder timeline entry. Forgejo 17.0.0 retains it and reports
PENDING_TIMELINE_RETAINED; the native conversation can display the same review twice after manual submission, with one review ID. AI findings are withheld from ordinary collaborators on the tested endpoints, but server administrators and metadata/notification side effects remain platform concerns.CI: Run 40070077028 passed for
003c3d9498560520077aaf4572df8434163a633c. The PR workflow validates builds without publishing an image.