feat: add standalone comment form to PR detail view #215
Reference in New Issue
Block a user
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?
Context
The PR detail view (
/pulls/{owner}/{repo}/{index}) displays a comments thread and a review form for formal reviews, but has no way to post a standalone comment to a PR outside of a formal review.The ROADMAP (Phase 2.2 - PR Detail) specifies: "Comments thread" and "Action buttons: ... Comment".
What to do
Add a standalone comment form below the comments thread in
internal/templates/pull_detail.html:hx-post="/pulls/{{.Pull.RepoOwner}}/{{.Pull.RepoName}}/{{.Pull.Number}}/comments"hx-target="#comments-list",hx-swap="beforeend"hx-on::after-requestThe route registration (
POST /pulls/{owner}/{repo}/{index}/comments) is tracked separately in #237Return a rendered comment HTML partial on success (matching existing comment card format)
Acceptance Criteria
Reference
ROADMAP Phase 2.2 - PR Detail: "Action buttons: Add label (dropdown), Assign, Comment, Close"
Related
Triage: Assigned to @AI-Engineer. Delegating to @developer agent. P2 task -- standalone comment form to PR detail view.