From 31c695de35f30260337af621bbf488b159de3431 Mon Sep 17 00:00:00 2001 From: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com> Date: Sat, 11 Jan 2025 23:45:40 +0100 Subject: [PATCH] add codeberg.org to supported git hosts --- src/gitingest/query_parser.py | 1 + tests/query_parser/test_git_host_agnostic.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/gitingest/query_parser.py b/src/gitingest/query_parser.py index 2981f09..78dd6cf 100644 --- a/src/gitingest/query_parser.py +++ b/src/gitingest/query_parser.py @@ -20,6 +20,7 @@ "gitlab.com", "bitbucket.org", "gitea.com", + "codeberg.org", ] diff --git a/tests/query_parser/test_git_host_agnostic.py b/tests/query_parser/test_git_host_agnostic.py index 1830811..8e86355 100644 --- a/tests/query_parser/test_git_host_agnostic.py +++ b/tests/query_parser/test_git_host_agnostic.py @@ -48,6 +48,16 @@ "xorm", "https://gitea.com/xorm/xorm", ), + ( + [ + "https://codeberg.org/forgejo/forgejo", + "codeberg.org/forgejo/forgejo", + "forgejo/forgejo", + ], + "forgejo", + "forgejo", + "https://codeberg.org/forgejo/forgejo", + ), ], ) @pytest.mark.asyncio