ForgejoKit/Tests/ForgejoKitTests
pdurlej 81d8bc5b4a fix: preserve merge error context (#3)
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
2026-05-17 21:19:39 +02:00
..
AdminServiceTests.swift feat: add new models and services 2026-03-11 21:57:40 +01:00
DateDecodingTests.swift feat: initial commit 2026-02-28 20:25:57 +01:00
DiffParserTests.swift feat: initial commit 2026-02-28 20:25:57 +01:00
ErrorMappingTests.swift feat: classify auth and service errors (#2) 2026-05-12 17:41:24 +02:00
FileContentTests.swift feat: initial commit 2026-02-28 20:25:57 +01:00
ModelDecodingTests.swift feat: add Forgejo Actions runs API (#1) 2026-05-07 16:42:16 +02:00
NormalizeServerURLTests.swift feat: initial commit 2026-02-28 20:25:57 +01:00
NotificationTests.swift fix: preserve merge error context (#3) 2026-05-17 21:19:39 +02:00
RepositoryServiceURLTests.swift feat: add new models and services 2026-03-11 21:57:40 +01:00
URLSessionManagerTests.swift feat: initial commit 2026-02-28 20:25:57 +01:00
UserServiceTests.swift feat: add new models and services 2026-03-11 21:57:40 +01:00
WorkflowServiceURLTests.swift feat: add Forgejo Actions runs API (#1) 2026-05-07 16:42:16 +02:00