feat: implement CloseIssue and PostComment client methods #42
Reference in New Issue
Block a user
Delete Branch "feature/close-issue-post-comment"
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
CloseIssuemethod to PATCH issue state to closed with cache invalidationPostCommentmethod to POST a comment and return the created Comment structPOST /issues/{owner}/{repo}/{index}/closeandPOST /issues/{owner}/{repo}/{index}/commenthandler routes with HTMX fragment supportCloses #36
Test plan
go test ./...passesAdd CloseIssue (PATCH state=closed) and PostComment (POST comment body) methods to the Gitea client with cache invalidation. Add corresponding handler routes POST /issues/{owner}/{repo}/{index}/close and POST /issues/{owner}/{repo}/{index}/comment with HTMX support. Include unit tests for both client methods. Closes leeworks-agents/gitea-mobile#36 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>