feat(forgejo): add the Forgejo SDK - #550
Merged
Merged
Conversation
Mkassabov
force-pushed
the
feat/forgejo-sdk
branch
from
September 7, 2026 12:15
720692c to
970662c
Compare
Contributor
|
Install the packages built from this commit: Distilled@distilled.cloud/core bun add https://pkg.ing/@distilled.cloud/core/48f0b8e@distilled.cloud/aws bun add https://pkg.ing/@distilled.cloud/aws/48f0b8e@distilled.cloud/axiom bun add https://pkg.ing/@distilled.cloud/axiom/48f0b8e@distilled.cloud/azure bun add https://pkg.ing/@distilled.cloud/azure/48f0b8e@distilled.cloud/cloudflare bun add https://pkg.ing/@distilled.cloud/cloudflare/48f0b8e@distilled.cloud/coinbase bun add https://pkg.ing/@distilled.cloud/coinbase/48f0b8e@distilled.cloud/discord bun add https://pkg.ing/@distilled.cloud/discord/48f0b8e@distilled.cloud/expo-eas bun add https://pkg.ing/@distilled.cloud/expo-eas/48f0b8e@distilled.cloud/fly-io bun add https://pkg.ing/@distilled.cloud/fly-io/48f0b8e@distilled.cloud/forgejo bun add https://pkg.ing/@distilled.cloud/forgejo/48f0b8e@distilled.cloud/gcp bun add https://pkg.ing/@distilled.cloud/gcp/48f0b8e@distilled.cloud/github bun add https://pkg.ing/@distilled.cloud/github/48f0b8e@distilled.cloud/hetzner bun add https://pkg.ing/@distilled.cloud/hetzner/48f0b8e@distilled.cloud/kubernetes bun add https://pkg.ing/@distilled.cloud/kubernetes/48f0b8e@distilled.cloud/mongodb-atlas bun add https://pkg.ing/@distilled.cloud/mongodb-atlas/48f0b8e@distilled.cloud/neon bun add https://pkg.ing/@distilled.cloud/neon/48f0b8e@distilled.cloud/planetscale bun add https://pkg.ing/@distilled.cloud/planetscale/48f0b8e@distilled.cloud/posthog bun add https://pkg.ing/@distilled.cloud/posthog/48f0b8e@distilled.cloud/prisma-postgres bun add https://pkg.ing/@distilled.cloud/prisma-postgres/48f0b8e@distilled.cloud/railway bun add https://pkg.ing/@distilled.cloud/railway/48f0b8e@distilled.cloud/stripe bun add https://pkg.ing/@distilled.cloud/stripe/48f0b8e@distilled.cloud/supabase bun add https://pkg.ing/@distilled.cloud/supabase/48f0b8e@distilled.cloud/turso bun add https://pkg.ing/@distilled.cloud/turso/48f0b8e@distilled.cloud/typesense bun add https://pkg.ing/@distilled.cloud/typesense/48f0b8e@distilled.cloud/vercel bun add https://pkg.ing/@distilled.cloud/vercel/48f0b8e@distilled.cloud/workos bun add https://pkg.ing/@distilled.cloud/workos/48f0b8e |
github-merge-queue
Bot
removed this pull request from the merge queue due to a manual request
Sep 7, 2026
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.
Smithy-pointer patches now apply in finalizeConvert (the pipeline #545 introduced) instead of a per-slug loop in convert; the one such patch targets the operation by its verbNoun name (DeleteOrg).
Mkassabov
force-pushed
the
feat/forgejo-sdk
branch
from
September 7, 2026 12:36
970662c to
48f0b8e
Compare
wyattjoh
pushed a commit
to wyattjoh/distilled
that referenced
this pull request
Sep 7, 2026
Cherry-picks alchemy-run#550. The packages/forgejo tree is identical to main's; the spec-mirror stack entry is dropped, and .gitmodules, tsconfig.json, and the pnpm-lock importer take this branch's layout and its resolved catalog versions.
wyattjoh
added a commit
to wyattjoh/distilled
that referenced
this pull request
Sep 7, 2026
Cherry-picks alchemy-run#550. The packages/forgejo tree is identical to main's; the spec-mirror stack entry is dropped, and .gitmodules, tsconfig.json, and the pnpm-lock importer take this branch's layout and its resolved catalog versions.
wyattjoh
added a commit
to wyattjoh/distilled
that referenced
this pull request
Sep 7, 2026
Cherry-picks alchemy-run#550. The packages/forgejo tree is identical to main's; the spec-mirror stack entry is dropped, and .gitmodules, tsconfig.json, and the pnpm-lock importer take this branch's layout and its resolved catalog versions.
wyattjoh
added a commit
to wyattjoh/distilled
that referenced
this pull request
Sep 8, 2026
Cherry-picks alchemy-run#550. The packages/forgejo tree is identical to main's; the spec-mirror stack entry is dropped, and .gitmodules, tsconfig.json, and the pnpm-lock importer take this branch's layout and its resolved catalog versions.
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.
Supersedes #541 (same commit, from @wyattjoh's fork) rebased onto the convert-time patch / verbNoun pipeline from #545/#548/#549. The one Smithy patch now applies in
finalizeConvertand targetsDeleteOrg.