feat: convert Forgejo and Gitea SDK records#269
Conversation
|
This change is part of the following stack:
Change managed by git-spice. |
roborev: Combined Review (
|
da3c8f2 to
bebe647
Compare
roborev: Combined Review (
|
bebe647 to
90ac716
Compare
roborev: Combined Review (
|
ed1755a to
c4e4cda
Compare
90ac716 to
e278070
Compare
roborev: Combined Review (
|
c4e4cda to
4e8dddc
Compare
e278070 to
94e4fda
Compare
roborev: Combined Review (
|
4e8dddc to
9bda02e
Compare
94e4fda to
596d83f
Compare
roborev: Combined Review (
|
596d83f to
6aa70c5
Compare
roborev: Combined Review (
|
roborev: Combined Review (
|
7508c2e to
d48e9c1
Compare
25dd2b8 to
809f2dc
Compare
roborev: Combined Review (
|
d48e9c1 to
7a30080
Compare
809f2dc to
b2ae569
Compare
roborev: Combined Review (
|
7a30080 to
c6466bd
Compare
b2ae569 to
add0e73
Compare
roborev: Combined Review (
|
Maps concrete Forgejo and Gitea SDK structs into the shared gitea-like DTO layer, including Forgejo Actions runs and Gitea draft pull requests.
Map Forgejo WIP pull request titles into the shared draft field and keep the shared draft normalization tests consistent after the DTO split from locked state.
The converter layer feeds the shared provider DTO path, so cover the fields reviewers called out through sync, SQLite, and generated API readback: draft state, labels, branches, merged and closed timestamps, and CI status.
Forgejo and Gitea statuses can include arbitrary target URLs. Only keep http and https URLs during SDK conversion so unsafe schemes are never persisted or rendered as CI links.
Strip non-http status and action URLs in the shared gitealike normalizer so unsafe provider values cannot be persisted or returned by API responses. Add a full server sync regression test covering the persisted and API-visible CI checks JSON.
add0e73 to
3a25000
Compare
Maps concrete Forgejo and Gitea SDK structs into the shared gitea-like DTO layer, including Forgejo Actions runs and Gitea draft pull requests.