feat(issues): make status_id, priority_id, type_id required on issue create #598
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
status_id,priority_id, andtype_idfields should be required when creating issues, not optional. This ensures every issue has proper metadata from the start.Changes needed
API
modules/structs/issue.go: ChangeCreateIssueOptionfields from*int64(optional) toint64(required)routers/api/v1/repo/issue.go: Validate non-zero values on create, return 422 if missingis_defaultdefinitions)MCP
mcp-mokogitea-api/src/index.ts: Changestatus_id,priority_id,type_idfromz.number().optional()toz.number()ongitea_issue_creategitea_issue_update(partial updates)Web UI