mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[PR #36] [MERGED] fix(connectors/gitlab): resolve subgroup path parsing dynamically #89
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#89
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/36
Author: @mhajder
Created: 6/6/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @tjbck
Base:
main← Head:fix/connectors/gitlab📝 Commits (1)
ae4869efix(connectors/gitlab): resolve subgroup path parsing dynamically📊 Changes
1 file changed (+74 additions, -20 deletions)
View changed files
📝
src/oikb/connectors/gitlab.py(+74 -20)📄 Description
Previously, GitLab source parser used a simple split limit to extract the owner namespace and repository name (e.g.
source.split("/", 2)). This caused parsing failures for repositories located in nested subgroups (e.g.,gitlab:group/subgroup/project/docs/api), as the subgroup path would get incorrectly split.This PR fixes subgroup parsing by:
project:pathseparator format (e.g.,gitlab:group/subgroup/project:docs/api) inparse_gitlab_source._ensure_resolved()to the connector. It probes the segments against the GitLab API (/projects/{candidate}) to dynamically identify the boundary between the project path and the repository file path.Should fix #14
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.