mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 03:48:14 +02:00
DAN-86 Github Connector should not return API page (#49)
This commit is contained in:
parent
5c98310b79
commit
17544e5b40
@ -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={
|
||||
|
Loading…
x
Reference in New Issue
Block a user