Run pre-commit
This commit is contained in:
@@ -1112,7 +1112,9 @@ class MarkItDown:
|
|||||||
self, issue_url: str, github_token: str
|
self, issue_url: str, github_token: str
|
||||||
) -> DocumentConverterResult:
|
) -> DocumentConverterResult:
|
||||||
if not IS_GITHUB_ISSUE_CAPABLE:
|
if not IS_GITHUB_ISSUE_CAPABLE:
|
||||||
raise ImportError("PyGithub is not installed. Please install it to use this feature.")
|
raise ImportError(
|
||||||
|
"PyGithub is not installed. Please install it to use this feature."
|
||||||
|
)
|
||||||
|
|
||||||
# Parse the issue URL
|
# Parse the issue URL
|
||||||
parsed_url = urlparse(issue_url)
|
parsed_url = urlparse(issue_url)
|
||||||
@@ -1135,7 +1137,9 @@ class MarkItDown:
|
|||||||
markdown_content += f"**Comments:**\n"
|
markdown_content += f"**Comments:**\n"
|
||||||
|
|
||||||
for comment in issue.get_comments():
|
for comment in issue.get_comments():
|
||||||
markdown_content += f"- {comment.user.login} ({comment.created_at}): {comment.body}\n"
|
markdown_content += (
|
||||||
|
f"- {comment.user.login} ({comment.created_at}): {comment.body}\n"
|
||||||
|
)
|
||||||
|
|
||||||
return DocumentConverterResult(
|
return DocumentConverterResult(
|
||||||
title=issue.title,
|
title=issue.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user