@blueforge-studio/forge-git-sdk
Typed SDK for the forge-git platform (Gitea API + forge-git-specific endpoints) — the same client the fgit CLI and the web wrap use
Informations sur le paquet
Versions
| Version | Publiée |
|---|---|
| 0.2.0 | 2026-10-13 |
| 0.1.0 | 2026-09-26 |
Chaîne d'approvisionnement par version
| Version | Sig | SBOM | Att |
|---|---|---|---|
| 0.2.0 | |||
| 0.1.0 |
Cliquez sur une version pour voir ses détails.
Chaîne d'approvisionnement
Rien n'est enregistré pour 0.2.0. Les versions publiées avant que le registre n'écrive la provenance n'en ont pas, et les signatures et SBOM sont joints par l'éditeur.
Dépendances
README
@blueforge-studio/forge-git-sdk
Typed SDK for the forge-git platform —
self-hosted Gitea plus forge-git-specific endpoints. This is the same client
the fgit CLI and the web wrap use, re-exported
one-to-one.
Install
npm i @blueforge-studio/forge-git-sdk
The package is on the private packr registry — your project needs the
@blueforge-studio scope map in .npmrc plus a PACKR_TOKEN-authorized
token (see the packr docs). No runtime dependencies: the client and its one
library dep are bundled into a single ESM file.
Quickstart
import { getPullRequest, mergePullRequest } from '@blueforge-studio/forge-git-sdk'
// Auth + base URL come from FORGE_GIT_TOKEN / FORGE_GIT_URL, or pass
// { token, baseUrl } per call.
const pr = await getPullRequest('blueforge-studio', 'my-repo', 42)
if (!pr.merged && pr.mergeable) {
await mergePullRequest('blueforge-studio', 'my-repo', 42, { style: 'squash' })
}
Docs
- SDK guide — install, auth, quickstart, error handling.
- API reference — every function, by area, plus the forge-git-specific REST endpoints that sit above Gitea.