feat: add POST /pulls/{owner}/{repo}/{index}/assignees route
Build and Push / test (pull_request) Successful in 1m46s
Build and Push / build (pull_request) Has been skipped

Register the PR assignees route pointing to the existing AssignIssue
handler, which works for both issues and PRs via the Gitea API.
Add integration tests covering valid, HTMX, and missing assignee cases.

Closes leeworks-agents/gitea-mobile#228

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
agent-company
2026-05-18 21:39:34 +00:00
parent d34916c276
commit d0bcbd1ed0
2 changed files with 61 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ func (h *Handler) RegisterRoutes(mux *http.ServeMux) {
mux.HandleFunc("GET /pulls/{owner}/{repo}/{index}", h.PullDetail)
mux.HandleFunc("POST /pulls/{owner}/{repo}/{index}/review", h.SubmitReview)
mux.HandleFunc("POST /pulls/{owner}/{repo}/{index}/state", h.SetPullState)
mux.HandleFunc("POST /pulls/{owner}/{repo}/{index}/assignees", h.AssignIssue)
// Settings (handled separately for auth bypass).
settingsHandler := &SettingsHandler{