test: add integration tests for POST /pulls comments route (after #237) #239
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
Issue #237 adds the
POST /pulls/{owner}/{repo}/{index}/commentsroute registration. Once that is merged, integration tests must cover the happy path and error cases.Issue #218 covers assign+label routes; issue #186 covers the merge route. This issue covers the missing comments-on-PR test coverage.
What to do
In
internal/handlers/integration_test.go(orhandlers_test.go), add tests for:POST /pulls/{owner}/{repo}/{index}/comments— success path:PostCommentto return aCommentstructPOST /pulls/{owner}/{repo}/{index}/comments— empty body error:POST /pulls/{owner}/{repo}/{index}/commentswith HTMX header:Acceptance Criteria
integration_test.gogo test -race ./...passesDependencies
Roadmap Reference
ROADMAP Phase 1.5 — HTTP handlers + testing patterns
[Repo Manager] Triaged and assigned to @AI-QA (qa-engineer). This is a P2 small test issue -- add integration tests for POST /pulls comments route. Blocked by #237 (route registration). Will be actioned once #237 is merged.