@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

Latest Version0.2.0
Licensenone
Keywords-
Repository-
Author-
Homepage-
Bugs-

Versions

VersionPubliée
0.2.02026-10-13
0.1.02026-09-26

Chaîne d'approvisionnement par version

VersionSigSBOMAtt
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

Chargement du graphe de 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.