feat: implement issue and PR detail handlers #27
Reference in New Issue
Block a user
Delete Branch "feature/issue-pr-detail-handlers"
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?
Summary
GET /issues/{owner}/{repo}/{index}andGET /pulls/{owner}/{repo}/{index}routesGetIssue,GetPull,GetIssueComments, andGetRepoLabelsclient methodsissue_detail.htmlandpull_detail.htmltemplates with HTMX fragment supportCloses #24
Test plan
GET /issues/{owner}/{repo}/{index}returns 200 with issue detailGET /pulls/{owner}/{repo}/{index}returns 200 with PR detailHX-Requestheader is presentgo test ./...passesAdd GET /issues/{owner}/{repo}/{index} and GET /pulls/{owner}/{repo}/{index} routes that fetch individual issues/PRs from the Gitea API and render them using the existing issue_detail.html and pull_detail.html templates. New client methods: - GetIssue: fetch a single issue by owner/repo/index - GetPull: fetch a single pull request by owner/repo/index - GetIssueComments: fetch comments for an issue - GetRepoLabels: fetch available labels for a repository Both handlers support HTMX fragment responses and full-page rendering, consistent with the existing handler pattern. Closes leeworks-agents/gitea-mobile#24 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>