jennifer registry

@deckyard/forgejo

A client for the Forgejo REST API: repositories, issues, pull requests, releases with assets, branches, tags and files

forgejogiteacodeberggitissues

Depend on it

[decks]
"@deckyard/forgejo" = "^0.1.0"

Versions

VersionStatusKindPinRequiresEnginesCapabilities
0.1.0livegit0b61f7f37b20-jennifer >=0.26.0net

License

LGPL-3.0-only

Source

Released from
0.1.0
Published under
@deckyard mplx
Repository owner
deckyard

Resolutions

Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.

Readme

@deckyard/forgejo

test Documentation release

A client for the Forgejo REST API, for Jennifer programs: Codeberg or a self-hosted Forgejo. Repositories with their settings, collaborators and webhooks; issues, comments, labels and milestones; pull requests, reviews and merging; releases with their assets; branches, tags and files; commits, commit statuses and Forgejo Actions. call and getAll reach every other endpoint. Gitea speaks most of the same API.

Documentation

Install

jvc add @deckyard/forgejo

This vendors the deck to vendor/<scope>/forgejo/. Without jvc, unpack the src/ subtree of a release archive (<scope>-forgejo-<version>.tar.gz) there.

Usage

import "@deckyard/forgejo/" as forgejo;

def c as forgejo.Client init forgejo.client("codeberg.org");
$c = forgejo.withToken($c, fs.readString("/run/secrets/forgejo"));

for (def i in forgejo.issues($c, "me/app", "open")) {
    io.printf("#%d %s\n", $i.number, $i.title);
}
def rel as forgejo.Release init forgejo.createRelease($c, "me/app", "1.2.0", "", "", "Notes", false);
forgejo.uploadAsset($c, "me/app", $rel.id, "app.tar.gz", fs.readBytes("dist/app.tar.gz"));

Requirements

Jennifer 0.26.0 or newer, the default jennifer binary (not jennifer-tiny), and the net capability.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/forgejo_test.j     # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

This deck as JSON