mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-28 13:53:28 +02:00
DAN-86 Github Connector should not return API page (#49)
This commit is contained in:
@@ -51,8 +51,10 @@ class BatchGithubLoader(PullLoader):
|
||||
full_context = f"Pull-Request {pull_request.title} {pull_request.body}"
|
||||
doc_batch.append(
|
||||
Document(
|
||||
id=pull_request.url,
|
||||
sections=[Section(link=pull_request.url, text=full_context)],
|
||||
id=pull_request.html_url,
|
||||
sections=[
|
||||
Section(link=pull_request.html_url, text=full_context)
|
||||
],
|
||||
source=DocumentSource.GITHUB,
|
||||
semantic_identifier=pull_request.title,
|
||||
metadata={
|
||||
|
Reference in New Issue
Block a user