mirror of
https://codeberg.org/secana/ForgejoKit.git
synced 2026-06-16 05:13:53 -07:00
Problem - Merge failures currently collapse 405 and 409 responses to generic ServiceError cases, even when Forgejo returns a useful response body. Change - Keeps the existing notMergeable and mergeConflict fallbacks for empty responses. - Preserves non-empty Forgejo response bodies as ServiceError.httpError for merge failures. - Extracts the common JSON message field for clearer LocalizedError descriptions. Tests - DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer swift test Co-authored-by: Piotr Durlej <pdurlej@users.noreply.github.com> Reviewed-on: https://codeberg.org/secana/ForgejoKit/pulls/3 |
||
|---|---|---|
| .. | ||
| ForgejoKitTests | ||