Custom issue status API endpoint returns 404 #691
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
The custom issue status API endpoint does not exist. Setting status via a dedicated endpoint returns 404.
Expected
A
PUTorPATCHendpoint to set custom issue status by issue ID:Or per-issue:
Workaround
Setting
status_idvia the standardPATCH /api/v1/repos/{owner}/{repo}/issues/{number}endpoint works:This is not documented but works. The dedicated
gitea_issue_set_statusMCP tool expects a separate endpoint that doesn't exist.Impact
gitea_issue_set_statusis broken (returns 404)Severity
Breaking -- the MCP tool advertises this capability but it doesn't work.
Resolution: Not a bug
The
PATCH /api/v1/repos/{owner}/{repo}/issues/{number}endpoint correctly acceptsstatus_idin the body. Verified:The 404 was caused by the MCP tool being called with the wrong parameter — the deferred tool schema showed
issue_id(internal DB ID) instead ofnumber(issue number), so the URL resolved to/issues/undefined.No server-side fix needed. See mcp-mokogitea-api#28 for the client-side fix.