mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-08 00:00:28 +00:00
fix #26 - improve regex for matching github repo. add unit test to cover
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -25,6 +25,7 @@ func TestFindGitSlug(t *testing.T) {
|
||||
{"[email protected]:nektos/act.git", "GitHub", "nektos/act"},
|
||||
{"https://github.com/nektos/act.git", "GitHub", "nektos/act"},
|
||||
{"http://github.com/nektos/act.git", "GitHub", "nektos/act"},
|
||||
{"git+ssh://[email protected]/owner/repo.git", "GitHub", "owner/repo"},
|
||||
{"http://myotherrepo.com/act.git", "", "http://myotherrepo.com/act.git"},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user