1b6c37605f
CI / test (pull_request) Successful in 17s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (pull_request) Successful in 26s
CI / review (gpt-5, security, ., rodin/security-patterns, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 35s
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (pull_request) Successful in 1m9s
When ListContents is called with a path that points to a file (not a directory), Gitea returns a single JSON object instead of an array. Previously this caused json.Unmarshal to fail with: json: cannot unmarshal object into Go value of type []gitea.ContentEntry Now ListContents tries array unmarshal first, and falls back to single object unmarshal, wrapping it in a slice. This allows patterns-files config to specify individual files like 'README.md' without triggering a parse error. Also updates TestGetAllFilesInPath_File to reflect actual Gitea behavior (single object response, not 404). Fixes #73