Skip to content

Commit fbb2b83

Browse files
authored
Merge pull request #13 from hrshdhgd/address-uri
Address <> in URI introduced by PyGithub
2 parents 333204b + 1dd4172 commit fbb2b83

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/onto_crawler/api.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ def _extract_info_from_issue_object(issue: Issue) -> dict:
9393

9494

9595
def _make_sense_of_body(body: str) -> list:
96-
return body.replace("\r", "").replace("\n", "").split("* ")[1:]
96+
return (
97+
body.replace("\r", "")
98+
.replace("\n", "")
99+
.replace("<", "")
100+
.replace(">", "")
101+
.split("* ")[1:]
102+
)
97103

98104

99105
def get_all_labels_from_repo(repository_name: str) -> dict:

src/onto_crawler/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def main(verbose: int, quiet: bool):
4949
repo_option = click.option(
5050
"-r",
5151
"--repo",
52+
required=True,
5253
help="Org/name of the github repo.",
5354
)
5455

0 commit comments

Comments
 (0)