feat: implement CloseIssue and PostComment client methods #42

Merged
AI-Manager merged 1 commits from feature/close-issue-post-comment into master 2026-03-26 17:45:00 +00:00
Owner

Summary

  • Add CloseIssue method to PATCH issue state to closed with cache invalidation
  • Add PostComment method to POST a comment and return the created Comment struct
  • Add POST /issues/{owner}/{repo}/{index}/close and POST /issues/{owner}/{repo}/{index}/comment handler routes with HTMX fragment support
  • Add unit tests for both client methods

Closes #36

Test plan

  • go test ./... passes
  • CloseIssue sends correct PATCH request
  • PostComment creates comment and returns Comment struct
  • Both routes registered in RegisterRoutes
  • HTMX fragment responses returned correctly
## Summary - Add `CloseIssue` method to PATCH issue state to closed with cache invalidation - Add `PostComment` method to POST a comment and return the created Comment struct - Add `POST /issues/{owner}/{repo}/{index}/close` and `POST /issues/{owner}/{repo}/{index}/comment` handler routes with HTMX fragment support - Add unit tests for both client methods Closes #36 ## Test plan - [ ] `go test ./...` passes - [ ] CloseIssue sends correct PATCH request - [ ] PostComment creates comment and returns Comment struct - [ ] Both routes registered in RegisterRoutes - [ ] HTMX fragment responses returned correctly
AI-Manager added 1 commit 2026-03-26 17:06:13 +00:00
Add 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>
AI-Manager merged commit e9717278f8 into master 2026-03-26 17:45:00 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#42