[PR #1932] [MERGED] GitLab Hosted and Local Connector #3835

Closed
opened 2026-02-22 18:34:35 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1932
Author: @timothycarambat
Created: 7/23/2024
Status: Merged
Merged: 7/23/2024
Merged by: @timothycarambat

Base: masterHead: 812-gitlab-connector


📝 Commits (10+)

  • 11497d4 create gitlab copies of github files
  • 341bd04 Added collector utilities for interacting with Gitlab repositories.
  • d7dbc25 The GitHub methods have been converted to work with GitLab.
  • 7754723 Added GitLab option to the UI.
  • 33ee73b change GitLab to Gitlab
  • ef698ed add gitlab file
  • 78a1421 Added GitLab as a new data connector option.
  • b77fcc5 set to ollama
  • 8ea5fc6 Adapted the GitHub importer to work with GitLab repositories.
  • 2b12df2 Added the GitLab equivalent methods to the dataConnector.js file.

📊 Changes

17 files changed (+939 additions, -22 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 collector/extensions/index.js (+8 -6)
📝 collector/extensions/resync/index.js (+1 -1)
📝 collector/package.json (+2 -1)
📝 collector/utils/extensions/RepoLoader/GithubRepo/RepoLoader/index.js (+37 -3)
📝 collector/utils/extensions/RepoLoader/GithubRepo/index.js (+3 -3)
collector/utils/extensions/RepoLoader/GitlabRepo/RepoLoader/index.js (+289 -0)
collector/utils/extensions/RepoLoader/GitlabRepo/index.js (+145 -0)
collector/utils/extensions/RepoLoader/index.js (+41 -0)
📝 collector/yarn.lock (+14 -0)
frontend/src/components/DataConnectorOption/media/gitlab.svg (+7 -0)
📝 frontend/src/components/DataConnectorOption/media/index.js (+2 -0)
frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Gitlab/index.jsx (+310 -0)
📝 frontend/src/components/Modals/ManageWorkspace/DataConnectors/index.jsx (+8 -0)
📝 frontend/src/models/dataConnector.js (+39 -0)
📝 server/endpoints/extensions/index.js (+20 -7)
server/utils/middleware/isSupportedRepoProviders.js (+12 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

closes #1921
resolves #821

What is in this change?

Adds Support to Gitlab (hosted and local) with the same interface and impact of Github repo loading.

Additional Information

  • Github and GitLab repo loaders are now loaded dynamically depending on the provider listed and passed to the API via :repo_platform param in URLs for collector.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

Validated repo collection for Github (functions same) and GitLab (with and without token)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/1932 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 7/23/2024 **Status:** ✅ Merged **Merged:** 7/23/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `812-gitlab-connector` --- ### 📝 Commits (10+) - [`11497d4`](https://github.com/Mintplex-Labs/anything-llm/commit/11497d4a2ca1e8c81301085dbe89ae9c02f04db1) create gitlab copies of github files - [`341bd04`](https://github.com/Mintplex-Labs/anything-llm/commit/341bd043cd04f45bd434f763aec5b0d6d5b02e69) Added collector utilities for interacting with Gitlab repositories. - [`d7dbc25`](https://github.com/Mintplex-Labs/anything-llm/commit/d7dbc25655c560da906418a920a80ba322b24fce) The GitHub methods have been converted to work with GitLab. - [`7754723`](https://github.com/Mintplex-Labs/anything-llm/commit/77547237e9f9279e9c89318eef662207db4a850d) Added GitLab option to the UI. - [`33ee73b`](https://github.com/Mintplex-Labs/anything-llm/commit/33ee73bca414a2c2823f3cdce3b1b07b42847cd2) change GitLab to Gitlab - [`ef698ed`](https://github.com/Mintplex-Labs/anything-llm/commit/ef698ed08055a0397bfce3842423aa6d288f4457) add gitlab file - [`78a1421`](https://github.com/Mintplex-Labs/anything-llm/commit/78a1421cad2f3eb137647460174bda38bb66142e) Added GitLab as a new data connector option. - [`b77fcc5`](https://github.com/Mintplex-Labs/anything-llm/commit/b77fcc5be45519ecdcec1a29f46b93fd1b2c0a76) set to ollama - [`8ea5fc6`](https://github.com/Mintplex-Labs/anything-llm/commit/8ea5fc6b8b3af988a73416877505a521dffd95a0) Adapted the GitHub importer to work with GitLab repositories. - [`2b12df2`](https://github.com/Mintplex-Labs/anything-llm/commit/2b12df2be628e4c55e9b4f071a6ec6c61c5c7aa1) Added the GitLab equivalent methods to the dataConnector.js file. ### 📊 Changes **17 files changed** (+939 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `collector/extensions/index.js` (+8 -6) 📝 `collector/extensions/resync/index.js` (+1 -1) 📝 `collector/package.json` (+2 -1) 📝 `collector/utils/extensions/RepoLoader/GithubRepo/RepoLoader/index.js` (+37 -3) 📝 `collector/utils/extensions/RepoLoader/GithubRepo/index.js` (+3 -3) ➕ `collector/utils/extensions/RepoLoader/GitlabRepo/RepoLoader/index.js` (+289 -0) ➕ `collector/utils/extensions/RepoLoader/GitlabRepo/index.js` (+145 -0) ➕ `collector/utils/extensions/RepoLoader/index.js` (+41 -0) 📝 `collector/yarn.lock` (+14 -0) ➕ `frontend/src/components/DataConnectorOption/media/gitlab.svg` (+7 -0) 📝 `frontend/src/components/DataConnectorOption/media/index.js` (+2 -0) ➕ `frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Gitlab/index.jsx` (+310 -0) 📝 `frontend/src/components/Modals/ManageWorkspace/DataConnectors/index.jsx` (+8 -0) 📝 `frontend/src/models/dataConnector.js` (+39 -0) 📝 `server/endpoints/extensions/index.js` (+20 -7) ➕ `server/utils/middleware/isSupportedRepoProviders.js` (+12 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> closes #1921 resolves #821 ### What is in this change? Adds Support to Gitlab (hosted and local) with the same interface and impact of Github repo loading. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information - Github and GitLab repo loaders are now loaded dynamically depending on the provider listed and passed to the API via `:repo_platform` param in URLs for collector. <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally Validated repo collection for Github (functions same) and GitLab (with and without token) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:35 -05:00
yindo closed this issue 2026-02-22 18:34:35 -05:00
yindo changed title from [PR #1932] GitLab Hosted and Local Connector to [PR #1932] [MERGED] GitLab Hosted and Local Connector 2026-06-05 15:15:27 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3835