[PR #1921] [CLOSED] 812 add a gitlab connector #3830

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/1921
Author: @DipFlip
Created: 7/22/2024
Status: Closed

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

9 files changed (+833 additions, -0 deletions)

View changed files

📝 collector/extensions/index.js (+115 -0)
collector/utils/extensions/GitlabRepo/RepoLoader/index.js (+162 -0)
collector/utils/extensions/GitlabRepo/index.js (+143 -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 (+316 -0)
📝 frontend/src/components/Modals/ManageWorkspace/DataConnectors/index.jsx (+8 -0)
📝 frontend/src/models/dataConnector.js (+39 -0)
📝 server/endpoints/extensions/index.js (+41 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves https://github.com/Mintplex-Labs/anything-llm/issues/812

What is in this change?

This copies the github data connector and ajusts it where necessary to work with gitlab.

Additional Information

I've tested this against public and private gitlab.com repos with access tokens. I have not tested against self-hosted gitlab server.

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

🔄 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/1921 **Author:** [@DipFlip](https://github.com/DipFlip) **Created:** 7/22/2024 **Status:** ❌ Closed **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 **9 files changed** (+833 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `collector/extensions/index.js` (+115 -0) ➕ `collector/utils/extensions/GitlabRepo/RepoLoader/index.js` (+162 -0) ➕ `collector/utils/extensions/GitlabRepo/index.js` (+143 -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` (+316 -0) 📝 `frontend/src/components/Modals/ManageWorkspace/DataConnectors/index.jsx` (+8 -0) 📝 `frontend/src/models/dataConnector.js` (+39 -0) 📝 `server/endpoints/extensions/index.js` (+41 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves https://github.com/Mintplex-Labs/anything-llm/issues/812 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> This copies the github data connector and ajusts it where necessary to work with gitlab. ### Additional Information I've tested this against public and private gitlab.com repos with access tokens. I have not tested against self-hosted gitlab server. <!-- 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 - [ ] Docker build succeeds locally --- <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 #1921] 812 add a gitlab connector to [PR #1921] [CLOSED] 812 add a gitlab 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#3830