Skip to content

Commit

Permalink
Add gitingest.com to known Git hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
filipchristiansen committed Jan 14, 2025
1 parent afd8e5a commit 664a446
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gitingest/query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"bitbucket.org",
"gitea.com",
"codeberg.org",
"gitingest.com",
]


Expand Down
6 changes: 6 additions & 0 deletions tests/query_parser/test_query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ async def test_parse_url_valid_https() -> None:
"https://github.com/user/repo",
"https://gitlab.com/user/repo",
"https://bitbucket.org/user/repo",
"https://gitea.com/user/repo",
"https://codeberg.org/user/repo",
"https://gitingest.com/user/repo",
]
for url in test_cases:
result = await _parse_repo_source(url)
Expand All @@ -34,6 +37,9 @@ async def test_parse_url_valid_http() -> None:
"http://github.com/user/repo",
"http://gitlab.com/user/repo",
"http://bitbucket.org/user/repo",
"http://gitea.com/user/repo",
"http://codeberg.org/user/repo",
"http://gitingest.com/user/repo",
]
for url in test_cases:
result = await _parse_repo_source(url)
Expand Down

0 comments on commit 664a446

Please sign in to comment.