feat(forgejo): add the Forgejo SDK - #541
Open
wyattjoh wants to merge 1 commit into
Open
Conversation
wyattjoh
force-pushed
the
wyattjoh/forgejo
branch
from
September 2, 2026 03:09
87a82e6 to
ce7f3e1
Compare
Add @distilled.cloud/forgejo: one service module per API tag, compiled from the Swagger 2.0 template Forgejo ships at a release tag. The spec-mirror-forgejo fetch script (stacks/distilled-submodules/spec-repos/ forgejo) pins the tag and fills in the two server-side placeholders the way a root-mounted instance renders them. Credentials carry the instance URL alongside the token, since a self-hosted forge has no default API root; the protocol sends Forgejo's `token` authorization scheme. Patches type what the document leaves out: the 500 an organization delete answers while it still owns repositories, the 403s the list endpoints answer for a non-member, the 409 an organization repository create answers for a taken name, the path/body `username` clash on adminCreateOrg, and the always-present members of the response definitions the Go structs never omit.
wyattjoh
force-pushed
the
wyattjoh/forgejo
branch
from
September 2, 2026 04:57
ce7f3e1 to
ea65bd7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
@distilled.cloud/forgejo, generated from the Swagger 2.0 template Forgejo ships in its repository at a release tag. Thespec-mirror-forgejofetch script (stacks/distilled-submodules/spec-repos/forgejo) pins the tag (v16.0.3) and fills in the two server-side placeholders the way a root-mounted instance renders them. One service module per API tag.FORGEJO_URL/FORGEJO_TOKENdriveCredentialsFromEnv.tokenauthorization scheme and reads the{ message, url }error envelope.X-Total-Count, sopage/limitstay plain inputs.Patches type what the document leaves out:
OrganizationOwnsRepositoriesonorgDelete: Forgejo answers a 500 withuser still has ownership of repositories.createOrgRepofor a taken name, matching whatcreateCurrentUserRepoalready declares.adminCreateOrg's path parameter renamed toowner: the body'susername(the org login) collided with it and was dropped.requiredon the always-present members of the response definitions, which the Go structs never omit, andsha1onAccessTokenmarked sensitive.The
.gitmodulesstanza is the inert onepnpm specs:linkwrites before the mirror exists; the gitlink follows in a follow-up once the stack has deployedspec-mirror-forgejo.Consumer: alchemy-run/alchemy#1425.