mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[PR #12] Feat/gitea connector #82
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/oikb/pull/12
Author: @loryanstrant
Created: 6/2/2026
Status: 🔄 Open
Base:
main← Head:feat/gitea-connector📝 Commits (3)
6420dc6feat: add Gitea source connector4c66712fix: handle KB responses with null filesf8c5657feat: support Gitea owner wildcard sources📊 Changes
11 files changed (+468 additions, -11 deletions)
View changed files
📝
.gitignore(+1 -0)📝
CHANGELOG.md(+12 -0)📝
README.md(+5 -3)📝
docs/guide.md(+38 -2)📝
pyproject.toml(+1 -1)📝
src/oikb/__init__.py(+1 -1)📝
src/oikb/cli.py(+8 -3)📝
src/oikb/client.py(+1 -1)➕
src/oikb/connectors/gitea.py(+217 -0)➕
tests/test_cli_status.py(+31 -0)➕
tests/test_gitea_connector.py(+153 -0)📄 Description
This pull request introduces a new Gitea source connector to sync repositories from self-hosted Gitea instances into Open WebUI Knowledge Bases. The Gitea connector supports both single-repo and wildcard (all repos for an owner/org) syncing, with branch and subdirectory scoping, and uses Gitea's API for efficient incremental syncs. The documentation, CLI, and test suite have been updated accordingly. Additionally, minor robustness improvements were made to handle empty file lists in API responses.
Gitea Connector Integration:
GiteaConnectorinsrc/oikb/connectors/gitea.pyto support syncing from Gitea repositories, including wildcard owner/org sources (gitea:owner/*) that sync all repositories under an owner, with files prefixed by repository name to avoid path collisions. Supports branch and subdirectory scoping, and uses the Gitea API for incremental sync checksums and file downloads.src/oikb/cli.py) to dispatchgitea:sources to the new connector, and clarified branch option help text to refer to "Git repository sources" instead of just GitHub. [1] [2] [3]Documentation Updates:
README.mdanddocs/guide.mdto document the new Gitea connector, example usage, and increased the connector count to 45. Gitea is now listed in all relevant tables and usage examples, including support for wildcard syncing and required environment variables. [1] [2] [3] [4] [5] [6]Robustness and Bugfixes:
filesfields that may beNonein API responses, ensuring that file lists default to empty lists to prevent errors in status reporting and file listing. [1] [2]Testing:
filesfields gracefully.Changelog and Versioning:
CHANGELOG.mdfor versions 0.3.7 and 0.3.8 to document the addition of the Gitea connector and wildcard syncing.pyproject.tomlandsrc/oikb/__init__.pyto 0.3.8. [1] [2]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.