Skip to content

Commit 09592d3

Browse files
Add gitingest.com to known Git hosts
1 parent 6039114 commit 09592d3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/gitingest/query_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"bitbucket.org",
2222
"gitea.com",
2323
"codeberg.org",
24+
"gitingest.com",
2425
]
2526

2627

tests/query_parser/test_query_parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ async def test_parse_url_valid_https() -> None:
1717
"https://github.com/user/repo",
1818
"https://gitlab.com/user/repo",
1919
"https://bitbucket.org/user/repo",
20+
"https://gitea.com/user/repo",
21+
"https://codeberg.org/user/repo",
22+
"https://gitingest.com/user/repo",
2023
]
2124
for url in test_cases:
2225
result = await _parse_repo_source(url)
@@ -34,6 +37,9 @@ async def test_parse_url_valid_http() -> None:
3437
"http://github.com/user/repo",
3538
"http://gitlab.com/user/repo",
3639
"http://bitbucket.org/user/repo",
40+
"http://gitea.com/user/repo",
41+
"http://codeberg.org/user/repo",
42+
"http://gitingest.com/user/repo",
3743
]
3844
for url in test_cases:
3945
result = await _parse_repo_source(url)

0 commit comments

Comments
 (0)