[GH-ISSUE #2434] [BUG]: Github connector references to master when the branch main is selected. #1582

Closed
opened 2026-02-22 18:25:31 -05:00 by yindo · 3 comments
Owner

Originally created by @jhmz333 on GitHub (Oct 7, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2434

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

The github connector doesn't use the branch selected when the branch is main.

Are there known steps to reproduce?

I'm trying to scrap the documentation of Kong API Gateway from their github repository, and I have seleted the main branch:
Github connector failed

But Anything try to get data using the master branch as a reference:
Anything logs

Originally created by @jhmz333 on GitHub (Oct 7, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2434 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? The github connector doesn't use the branch selected when the branch is **main**. ### Are there known steps to reproduce? I'm trying to scrap the documentation of Kong API Gateway from their github repository, and I have seleted the main branch: ![Github connector failed](https://github.com/user-attachments/assets/d4f87b12-e3b5-46c2-a9bb-6994da865174) But Anything try to get data using the master branch as a reference: ![Anything logs](https://github.com/user-attachments/assets/607c5777-dcf3-461b-95ff-36f2c8cc5505)
yindo added the possible bug label 2026-02-22 18:25:31 -05:00
yindo closed this issue 2026-02-22 18:25:31 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 9, 2024):

@jhmz333 To avoid this issue, just post in the real repo origin and not a link to a file directly on the tree.
So in your example: https://github.com/Kong/docs.konghq.com

@timothycarambat commented on GitHub (Oct 9, 2024): @jhmz333 To avoid this issue, just post in the real repo origin and not a link to a file directly on the tree. So in your example: `https://github.com/Kong/docs.konghq.com`
Author
Owner

@jhmz333 commented on GitHub (Oct 10, 2024):

@jhmz333 To avoid this issue, just post in the real repo origin and not a link to a file directly on the tree. So in your example: https://github.com/Kong/docs.konghq.com

Hi @timothycarambat, thanks for the suggestion, however, I just need a part of the repo, for that reason, I used the link to a folder directly on the tree, I wanted to avoid loading the entire repo.

@jhmz333 commented on GitHub (Oct 10, 2024): > @jhmz333 To avoid this issue, just post in the real repo origin and not a link to a file directly on the tree. So in your example: `https://github.com/Kong/docs.konghq.com` Hi @timothycarambat, thanks for the suggestion, however, I just need a part of the repo, for that reason, I used the link to a folder directly on the tree, I wanted to avoid loading the entire repo.
Author
Owner

@timothycarambat commented on GitHub (Oct 11, 2024):

Ah, I see - in that case you can use the file ignores section and use it like a gitignore where you can ignore all and then ! what you are looking for. The default (and typical behavior) is to pull in everything.

I can see the use for only pulling specific files though since most repos may not 100% useful - in which case scraping their github.com/raw URL using the regular website scraper might be better - of course if it is a private repo then you need to just copy paste or something :/

@timothycarambat commented on GitHub (Oct 11, 2024): Ah, I see - in that case you can use the `file ignores` section and use it like a gitignore where you can ignore all and then `!` what you are looking for. The default (and typical behavior) is to pull in everything. I can see the use for only pulling specific files though since most repos may not 100% useful - in which case scraping their github.com/raw URL using the regular website scraper might be better - of course if it is a private repo then you need to just copy paste or something :/
yindo changed title from [BUG]: Github connector references to master when the branch main is selected. to [GH-ISSUE #2434] [BUG]: Github connector references to master when the branch main is selected. 2026-06-05 14:41:34 -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#1582