Changes for version 0.001 - 2026-12-02

  • Initial release: synchronous Moo client for the Forgejo REST API (api/v1).
  • WWW::Forgejo: url/token from constructor options or FORGEJO_URL / FORGEJO_TOKEN; url is normalised to the /api/v1 base (base_url).
  • Controllers on the client: misc, users, current_user, repos, orgs, teams, notifications, packages, activitypub and admin (users, hooks, cron, quota, runners). Paths, parameters and request bodies are checked against the official Forgejo swagger spec by the test suite.
  • Per-repository controllers on WWW::Forgejo::Entity::Repo: actions, assignees, branches, branch_protections, collaborators, contents, flags, forks, git, hooks, issues, keys, labels, milestones, pulls, releases, reviewers, stargazers, subscribers, subscription, tags, tag_protections, teams, topics and wiki; WWW::Forgejo::API::Repo::Statuses for commit statuses. Includes Branches::rename, Flags::check/replace/remove_all, Releases::latest/delete_by_tag/get_asset/edit_asset/delete_asset and TagProtections::edit. Contents raw, media and get_archive return the file bytes unchanged; statuses->combined escapes a slash in the ref.
  • Per-organization controllers on WWW::Forgejo::Entity::Org: actions, blocked_users, hooks, labels, members, quota and teams. The organization comes from the bound entity, not from an argument.
  • One call style for all controllers: query parameters and request bodies are named arguments, no hashref is passed positionally, a collection comes back as an arrayref; the parameters that are part of the path (owner, repo, index, org, name) stay positional.
  • The controllers cover the operations of the Forgejo swagger spec: the repositories, the issues, the pull requests, the actions, the users, the organizations, the teams, the activitypub endpoints, the admin quota rules and groups and the git diffs. The deprecated alias POST /org/{org}/repos is left out, its current form POST /orgs/{org}/repos is there.
  • Controllers for the admin quota groups and rules (with the rules and the users of a group) and for starring a repository and following a user; a quota group and a quota rule are entities.
  • The ActivityPub endpoints are a boundary of the client: actor, inbox and outbox need an HTTP signature and answer without one with "request signature verification failed"; without federation the paths are not registered at all.
  • users->create_token and users->delete_token use the basic authentication of the request, so the tokens of another user can be managed; packages->upload sends a package to the instance outside /api/v1.
  • Yes/no endpoints (204/404) are answered as booleans via check(); the verdict of a response is a method of its own, so a transport that fetched the response itself can ask the same question. Release assets are uploaded as multipart/form-data.
  • Entity classes (WWW::Forgejo::Entity::*) wrapping the decoded JSON, with accessors following the swagger response schemas and the full structure on ->data. Client chains such as $forgejo->repos->get(...)->issues hold no reference cycle.
  • WWW::Forgejo::Role::HTTP: get/post/put/patch/delete with token auth, JSON encoding/decoding, query parameters on every verb, DELETE with a body, path segments and query values percent-encoded as UTF-8, each part encoded exactly once, and a croak carrying status and message on non-2xx and undecodable responses; an empty JSON message or a one-line plain-text body (such as "404 page not found") becomes the message of the croak, and check croaks on a missing route instead of answering "no". Text bodies are decoded by their declared charset; get takes a raw option that returns the body bytes unchanged. A single request can carry basic authentication instead of the token, a raw body with its content type and a base URL outside /api/v1. get follows X-Total-Count based auto-pagination (page_size, max_pages) for plain arrays and the search envelope, with the default LWP backend as well. It also paginates the Actions runs envelope (workflow_runs, total from the body's total_count when there is no X-Total-Count header).
  • Pluggable transport via WWW::Forgejo::Role::IO; default backend WWW::Forgejo::LWPIO (LWP::UserAgent). Transport-independent WWW::Forgejo::HTTPRequest / WWW::Forgejo::HTTPResponse value objects, shared with Net::Async::Forgejo. LWPIO hands on the body bytes.
  • LWP::Protocol::https is recommended, not required: https instance URLs need it, plain-http instances do not.
  • Offline test suite against a mock transport, with POD coverage and spec-conformance checks; live tests (t/90-97) run only with TEST_FORGEJO_URL and TEST_FORGEJO_TOKEN set and are verified against Forgejo 15.0.7; the docker test instance (make -f Makefile.docker) runs 15.0.7.
  • The POD coverage test tells the source form of the POD and the woven form of the built distribution apart, checks the documented names in both, and checks the kind of a name where the POD states one.
  • A wiki page edited without a title keeps the name it is addressed by: the client sends that name as the title.
  • The unused entity classes WWW::Forgejo::Entity::User, ::Email and ::CronTask are gone, and the Log::Any import is gone from the modules that do not log.
  • The cpanfile holds every prerequisite the code loads: a test reads the runtime and the test phase of the cpanfile and wants every module of lib/ and of the test suite to be named there, so a lost prerequisite fails while the distribution is built and not on the first request.
  • The test suite loads IO::Compress::Gzip; the cpanfile names it in the test phase, so a fresh installation has the module and the test suite compiles.

Modules

Perl client for the Forgejo API v1
Forgejo ActivityPub API
Forgejo Admin API
Forgejo Admin Cron API
Forgejo Admin Hooks API
Forgejo Admin Quota API
Forgejo Admin Runners API
Forgejo Admin Users API
Forgejo Current User API
Forgejo Misc API - instance information and renderers
Forgejo Notifications API
Forgejo Organization Actions API
Forgejo Organization Blocked Users API
Forgejo Organization Hooks API
Forgejo Organization Labels API
Forgejo Organization Members API
Forgejo Organization Quota API
Forgejo Organization Teams API
Forgejo Organizations API
Forgejo Packages API
Forgejo Repo Actions API
Forgejo Repo Assignees API
Forgejo Repo Branch Protections API
Forgejo Repo Branches API
Forgejo Repo Collaborators API
Forgejo Repo Contents API
Forgejo Repo Flags API
Forgejo Repo Forks API
Forgejo Repo Git API
Forgejo Repo Hooks API
Forgejo Repo Issues API
Forgejo Repo Keys API
Forgejo Repo Labels API
Forgejo Repo Milestones API
Forgejo Repo Pull Requests API
Forgejo Repo Releases API
Forgejo Repo Reviewers API
Forgejo Repo Stargazers API
Forgejo Repo Statuses API
Forgejo Repo Subscribers API
Forgejo Repo Subscription API
Forgejo Repo Tag Protections API
Forgejo Repo Tags API
Forgejo Repo Teams API
Forgejo Repo Topics API
Forgejo Repo Wiki API
Forgejo Repos API
Forgejo Teams API
Forgejo Users API
Base entity class for Forgejo objects
Forgejo Branch Entity
Forgejo Branch Protection Entity
Forgejo Collaborator Entity
Forgejo Commit Status Entity
Forgejo Deploy Key Entity
Forgejo Hook Entity
Forgejo Issue Entity
Forgejo Issue Comment Entity
Forgejo Milestone Entity
Forgejo Organization Entity
Forgejo Pull Request Entity
Forgejo Pull Request Review Entity
Forgejo QuotaGroup Entity
Forgejo QuotaRule Entity
Forgejo Release Entity
Forgejo Release Asset Entity
Forgejo Repo Entity
Forgejo Team Entity
Forgejo Workflow Job Entity
Forgejo Workflow Run Entity
HTTP request object for Forgejo API
HTTP response object for Forgejo API
Synchronous HTTP backend using LWP::UserAgent
HTTP client role for Forgejo API clients
Interface role for pluggable HTTP backends
Percent-encoding of the parts of a Forgejo API URL