[PR #2439] [MERGED] Github data connector improvements #3986

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2439
Author: @shatfield4
Created: 10/7/2024
Status: Merged
Merged: 10/21/2024
Merged by: @timothycarambat

Base: masterHead: 2434-bug-github-connector-references-to-master-when-the-branch-main-is-selected


📝 Commits (7)

  • f7a8652 fix tree/blob github urls from branches not being loaded
  • 3c66ce2 improve ux of github data connector
  • 3ff62b5 lint
  • 5783ced Merge branch 'master' into 2434-bug-github-connector-references-to-master-when-the-branch-main-is-selected
  • 2e51fc8 patch Github URL parser to just validate with URL native parser
  • 49bdb2c uncheck LocalStorage of PAT for security reasons
  • b7ddbc3 Merge branch 'master' into 2434-bug-github-connector-references-to-master-when-the-branch-main-is-selected

📊 Changes

1 file changed (+28 additions, -12 deletions)

View changed files

📝 collector/utils/extensions/RepoLoader/GithubRepo/RepoLoader/index.js (+28 -12)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #2434

What is in this change?

  • Support using paths to specific folders in a Github repo (now supports /blob and /tree links)
  • Fix errors being thrown when a repo was sent to the collector and it is not at the root of the repo
  • Improve UX of frontend UI by storing PAT in localstorage if successful and removing it if there is a failure

Additional Information

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/2439 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 10/7/2024 **Status:** ✅ Merged **Merged:** 10/21/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2434-bug-github-connector-references-to-master-when-the-branch-main-is-selected` --- ### 📝 Commits (7) - [`f7a8652`](https://github.com/Mintplex-Labs/anything-llm/commit/f7a8652bf8aa669e649d10b7888136efee360b49) fix tree/blob github urls from branches not being loaded - [`3c66ce2`](https://github.com/Mintplex-Labs/anything-llm/commit/3c66ce29743af4664a65ba06b6fc24d0ce7cbe85) improve ux of github data connector - [`3ff62b5`](https://github.com/Mintplex-Labs/anything-llm/commit/3ff62b57b1db2a6c95e7fd1b5a7c189b43ee5e9e) lint - [`5783ced`](https://github.com/Mintplex-Labs/anything-llm/commit/5783ced87f8bbe71c4c735c624d9c4021d7502cf) Merge branch 'master' into 2434-bug-github-connector-references-to-master-when-the-branch-main-is-selected - [`2e51fc8`](https://github.com/Mintplex-Labs/anything-llm/commit/2e51fc84752c0688507861a0f961fb3448328e0d) patch Github URL parser to just validate with `URL` native parser - [`49bdb2c`](https://github.com/Mintplex-Labs/anything-llm/commit/49bdb2c60eebf98e9201c05f832edc7c16317299) uncheck LocalStorage of PAT for security reasons - [`b7ddbc3`](https://github.com/Mintplex-Labs/anything-llm/commit/b7ddbc384fefefeabf5c44c0ab6e5953bf043f7b) Merge branch 'master' into 2434-bug-github-connector-references-to-master-when-the-branch-main-is-selected ### 📊 Changes **1 file changed** (+28 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `collector/utils/extensions/RepoLoader/GithubRepo/RepoLoader/index.js` (+28 -12) </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 #2434 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Support using paths to specific folders in a Github repo (now supports `/blob` and `/tree` links) - Fix errors being thrown when a repo was sent to the collector and it is not at the root of the repo - Improve UX of frontend UI by storing PAT in localstorage if successful and removing it if there is a failure ### Additional Information <!-- 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 --- <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:54 -05:00
yindo closed this issue 2026-02-22 18:34:54 -05:00
yindo changed title from [PR #2439] Github data connector improvements to [PR #2439] [MERGED] Github data connector improvements 2026-06-05 15:16:14 -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#3986