Access Forgejo and Gitea repositories: ingest repository text files (by extension), READMEs, issues and pull requests
A Dify online document datasource that ingests Forgejo (and Gitea) content
into a Dify Knowledge base — either an overview of the token user's repositories
(README + issues + pull requests), or all text files of one repository's tree
(by file extension), which makes it usable as a real documentation/Knowledge
source rather than just READMEs.
Forgejo is a Gitea fork; both expose the same REST API, so
this plugin works with Gitea too — the shared surface is used for
everything.
The plugin needs two credentials:
Credentials are validated on save by calling ; an invalid URL
or token is rejected with a clear message (any embedded in the URL
is redacted from error text).
The datasource has two modes, selected by the Repository parameter.
Walks the repository tree and exposes one page per text file (filtered by
extension), so an entire docs/man repo becomes Knowledge:
Parameters (all optional except where noted):
Default extensions: (see in
). Each file's git blob SHA is stored as the page's
— a precise per-file change marker (note: Dify does not yet
diff online_document pages on it, so re-syncs currently re-ingest all selected
files; the SHA is correct provenance and future-proofs incremental sync).
The tree is read via the recursive git-trees API and paginated, so large
repositories (e.g. a man corpus with tens of thousands of files) are not cut off
at one page.
For the authenticated user's repositories (from , paginated),
the datasource exposes these pages:
Each repository page yields a Markdown document; issues and PRs include their
comment threads.
To keep page listings bounded, the datasource caps what it enumerates:
Repositories beyond the cap, and issues/PRs beyond their per-repo caps, are not
listed as pages (the caps are defined in ).
Note that the per-repo issue and pull-request counts are also bounded by the
server's maximum page size: each is fetched in a single request, so a server
whose max page size is below the per-repo cap will return fewer items.
All requests authenticate with the header.
The plugin icon () is the Forgejo logo by
Caesar Schinas, licensed under
CC BY-SA 4.0 and used
unmodified. See . The icon is licensed separately from the
plugin source code (Apache-2.0); per the ShareAlike term it remains under
CC BY-SA 4.0.
Apache-2.0. Copyright 2026 Alexey Shabalin.
Every outbound call builds its address at runtime, so no host can be listed.
Last checked 09/08/2026 08:53 AM · version 0.0.2