Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

test: cover Gitea remote URLs

marcuslannister466e319c6559
diff --git a/src/store.rs b/src/store.rs
index cfc11aa..d171f87 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -1361,6 +1361,10 @@ mod tests {
"https://github.com/owner/repo/",
"https://github.com/owner/repo/tree/main",
"https://github.com/owner/repo/pull/3",
+ // Gitea, or any other host: only owner/repo counts.
+ "https://gitea.example.com/owner/repo.git",
+ "[email protected]:owner/repo.git",
+ "ssh://[email protected]:2222/owner/repo.git",
] {
assert_eq!(repo_from_url(url).as_deref(), Some("owner/repo"), "{url}");
}