1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

fix #26 - improve regex for matching github repo. add unit test to cover

This commit is contained in:
Casey Lee 2019-02-12 23:08:07 -05:00
parent 36c11232c1
commit 622d0e27c7
2 changed files with 2 additions and 1 deletions

View file

@ -25,6 +25,7 @@ func TestFindGitSlug(t *testing.T) {
{"git@github.com: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://git@github.com/owner/repo.git", "GitHub", "owner/repo"},
{"http://myotherrepo.com/act.git", "", "http://myotherrepo.com/act.git"},
}