test: add integration test for POST /issues create-issue handler #113
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?
Summary
Issues #110 and #111 added integration tests for the label assignment and PR review POST handlers. The
POST /issuescreate-issue handler is the remaining untested POST route.What to Do
internal/handlers/(or a dedicated_test.gofile) that:POST /issuesrequest with a JSON or form body containingowner,repo,title,body, andlabel_idfieldsCreateIssue()methodCreateIssue()was called with the correct parametersHX-Request: truetest variant to confirm the HTMX fragment response path is exercisedgo test ./...to confirm all tests passAcceptance Criteria
POST /issueshandler has at least one integration test covering the happy pathgo test ./... -raceexits 0Roadmap Reference
ROADMAP.md Phase 1.5 — HTTP Handlers,
POST /issuesroute.Repo Manager Triage (2026-03-28)
Priority: P2 | Size: Small | Assignee: AI-QA
Integration test for
POST /issuescreate-issue handler. No blockers. Should follow the same pattern established in #110 and #111.Action: Assigned to AI-QA for implementation. Test both full-page and HTMX fragment response paths.
Triaged and implemented. Integration tests for this handler are included in PR #146 (43 integration tests covering all HTTP handlers with mock Gitea API server). Ready for review.
Addressed by PR #146 (merged). Integration tests for this handler are now in master.