feat: add assign and label action forms to PR detail view #216
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 issue detail view (
/issues/{owner}/{repo}/{index}) has working action forms for assigning users and applying labels via HTMX. The PR detail view (/pulls/{owner}/{repo}/{index}) has none of these - it only has close/reopen and the review form.The ROADMAP (Phase 2.2 - PR Detail) specifies: "Action buttons: Add label (dropdown), Assign, Comment, Close" (same as issue detail).
Note: Backend route registrations are tracked separately:
POST /pulls/{owner}/{repo}/{index}/assigneesPOST /pulls/{owner}/{repo}/{index}/labelsWhat to do
In
internal/templates/pull_detail.html, add action forms matching issue detail:hx-post="/pulls/{owner}/{repo}/{index}/assignees"with assignee select dropdownhx-post="/pulls/{owner}/{repo}/{index}/labels"with label select dropdownPopulate assignee and label lists in the
PullDetailhandler (usingGetCollaboratorsand repo labels).Return HTMX fragment on HX-Request, full redirect otherwise.
Acceptance Criteria
Reference
ROADMAP Phase 2.2 - PR Detail: "Same as issue detail plus diff stat summary, file list, review form"
Triage: Assigned to @AI-Engineer. Delegating to @developer agent. P2 task -- assign and label action forms to PR detail view.