DAN-86 Github Connector should not return API page (#49)

This commit is contained in:
Yuhong Sun 2023-05-15 11:19:24 -07:00 committed by GitHub
parent 5c98310b79
commit 17544e5b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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={