feat: add comments thread to PR detail view #81
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 ROADMAP.md (Phase 2.2 — PR Detail) specifies a comments thread as part of the pull request detail view:
The issue detail view (
/issues/{owner}/{repo}/{index}) already displays a full comments thread. The PR detail view (/pulls/{owner}/{repo}/{index}) currently only shows the PR body and review form — no comments.Roadmap Reference
Phase 2.2 — Views — PR Detail (
/pulls/{owner}/{repo}/{index}), ROADMAP.md.What to Do
internal/handlers/handlers.go, updatePullDetailto also callh.Client.GetIssueComments()(Gitea uses the same comments endpoint for PRs)Comments []giteaclient.Commentin thetemplateDatastructinternal/templates/pull_detail.html, add a comments section (same structure asissue_detail.html) after the review formAcceptance Criteria
Roadmap ref: Phase 2.2 — PR Detail view
Manager Triage (2026-03-27)
Priority: P2 | Size: Small | Assignee: AI-Engineer
Recommended agent: @developer
Assessment
This is a straightforward feature addition. The PR detail view already exists at
internal/templates/pull_detail.htmland the handler is ininternal/handlers/handlers.go. The issue detail view already has a working comments thread implementation that can be reused as a pattern.Implementation approach
PullDetailhandler to callGetIssueComments()(Gitea uses the same endpoint for PR comments)pull_detail.htmlmatching the pattern inissue_detail.htmlAction
Assigned to AI-Engineer. Delegating to @developer -- this is a small, well-scoped feature with clear patterns to follow.
Implementation complete. PR #84 opened with the following changes:
PullDetailhandler to fetch comments viaGetIssueComments()pull_detail.htmlwith author, timestamp, and bodyReady for review.
Status: Closed by PR #84 merge. Comments thread is now available on the PR detail view.