ops forgejo pr review: support inline per-file comments #76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
coily ops forgejo pr review(coilysiren/coily#74) supports the top-level review event (APPROVE / REQUEST_CHANGES / COMMENT) with an optional body, but not inline per-file/per-line comments. Reviewers who want to leave specific feedback on a hunk still have to drop to curl.Scope
Extend (or sibling)
coily ops forgejo pr reviewto accept inline comments. Forgejo'sPOST /repos/{owner}/{repo}/pulls/{n}/reviewsaccepts acommentsarray of:Two shape options:
--comments-file PATH-> JSON array on disk that gets validated against a Go struct then folded into the existing review POST. Operator-side overhead but one verb invocation.Option 1 is the smaller surface and matches
--body-fileergonomics. Default there unless option 2 has a concrete caller.Validate each comment entry: non-empty
path, exactly one ofold_position/new_positionset, non-emptybody.Why
Closes the inline-review gap from coilysiren/coily#74. Review automation (lint findings, suggested edits, security-review skill output) wants per-line comments, not just a top-level event.