feat: read Forgejo and Gitea through shared provider core#270
feat: read Forgejo and Gitea through shared provider core#270mariusvniekerk wants to merge 5 commits intoforgejo-gitea-sdk-convertersfrom
Conversation
|
This change is part of the following stack:
Change managed by git-spice. |
roborev: Combined Review (
|
da3c8f2 to
bebe647
Compare
b01a2a4 to
22d5fab
Compare
roborev: Combined Review (
|
bebe647 to
90ac716
Compare
22d5fab to
529ef18
Compare
roborev: Combined Review (
|
90ac716 to
e278070
Compare
529ef18 to
e409f6a
Compare
roborev: Combined Review (
|
roborev: Combined Review (
|
e278070 to
94e4fda
Compare
6c16c83 to
89ebd24
Compare
roborev: Combined Review (
|
94e4fda to
596d83f
Compare
89ebd24 to
e525542
Compare
roborev: Combined Review (
|
596d83f to
6aa70c5
Compare
e525542 to
73793e8
Compare
roborev: Combined Review (
|
73793e8 to
565114c
Compare
roborev: Combined Review (
|
25dd2b8 to
809f2dc
Compare
565114c to
5f77a5d
Compare
roborev: Combined Review (
|
Wire the Forgejo and Gitea SDK clients into the shared gitealike provider so repository, merge request, issue, release, tag, and CI read paths use the same pagination and typed error behavior. Forgejo includes action runs in CI checks where the SDK exposes them; Gitea stays on commit statuses only.
Exercise Forgejo reads through the shared gitealike provider, syncer, SQLite persistence, and generated HTTP client so provider read support is covered beyond unit-level transport tests.
The shared provider constructor now accepts functional options, but lower stack branches still used direct Options literals. Update the read-provider layer so each intermediate PR builds independently after the constructor refactor.
The Forgejo SDK can return a nil action-run response alongside a successful HTTP response. Guard that path before converting workflow runs so nilaway and CI push hooks do not flag a possible panic.
Some Forgejo instances return 404, 405, or 501 for repository action runs when Actions are disabled or unsupported. Treat those action-run responses as an empty optional source so commit statuses still sync, and cover the behavior with client tests.
809f2dc to
b2ae569
Compare
5f77a5d to
bd27b9f
Compare
roborev: Combined Review (
|
Wire the Forgejo and Gitea SDK clients into the shared gitealike provider so repository, merge request, issue, release, tag, and CI read paths use the same pagination and typed error behavior. Forgejo includes action runs in CI checks where the SDK exposes them; Gitea stays on commit statuses only.