Skip to content

feat(tools/forgejo): forge + tracker bridge for Codeberg / Gitea / Forgejo #310

Open

Description

@potiuk

Add tools/forgejo/ (or tools/gitea/ — same API family) as a forge bridge for self-hosted Git forges using the Forgejo / Gitea API. The API is mostly GitHub-compatible, so much of tools/github/ can be ported with minimal changes.

Suggested capabilities (mirror the GitHub bridge):

  • Issue + PR read/write (same shape as GitHub)
  • Repo metadata, labels, milestones
  • CI integration — Forgejo Actions is GitHub-Actions-compatible

Why: As projects look at GitHub-alternatives, Forgejo/Gitea is the leading self-hostable option. Codeberg (codeberg.org) runs Forgejo and hosts a substantial OSS set including KeePassXC client tooling, the F-Droid mirror, and a growing migration set. Gitea itself uses Gitea. Some Linux subsystems and Apache podling discussions raise Forgejo as the "exit ramp" if GitHub policies become a problem — having the bridge means a project can move without losing the framework.

Reference:

Activity

  1. added
    enhancementNew feature or request
    capability:platformFramework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap)
    on May 26, 2026
  2. Kaap10 commented on Sep 28, 2026

    @Kaap10
    Contributor

    Hi @potiuk, I would love to pick this up and work on adding the Forgejo/Gitea bridge!

    Just a quick note: the Forgejo API reference link in the description (.../admin/api-usage/) is currently returning a 404. It seems their docs were restructured, and the correct link is now: https://forgejo.org/docs/latest/user/api/usage/

    I was analyzing the implementation approach for porting tools/github/ and have a quick architectural question:

    Would you prefer the tools/forgejo/ operations to be built around the official tea CLI (mirroring how the GitHub adapter uses the gh CLI), or strictly raw curl requests targeting the Forgejo REST API?

    Context: Using tea abstracts away the need to manually fetch and map integer IDs for labels/milestones (which the Forgejo REST API requires), keeping the agent recipes much simpler and less error-prone. However, I want to ensure depending on tea aligns with Magpie's baseline environmental tooling expectations.

  3. potiuk commented on Sep 28, 2026

    @potiuk
    MemberAuthor

    Sure - go ahead. : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    capability:platformFramework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap)enhancementNew feature or requestfamily:toolstools/*good first issueGood for newcomerssource control systemVersion control systems and the forges/services that host them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions