mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-06 23:30:29 +00:00
Fix github SSH regex for missing .git extension (#871)
* tests(pkg/common) add failing test case for SSH git URL * fix(pkg/common) github SSH regex for missing .git extension Co-authored-by: Ryan <[email protected]>
This commit is contained in:
1 parent
3054f3ea14
commit
62d2167f3b
2 files changed
+3
-2
No files matched your search
@@ -26,6 +26,7 @@ func TestFindGitSlug(t *testing.T) {
|
||||
{"https://git-codecommit.us-east-1.amazonaws.com/v1/repos/my-repo-name", "CodeCommit", "my-repo-name"},
|
||||
{"ssh://git-codecommit.us-west-2.amazonaws.com/v1/repos/my-repo", "CodeCommit", "my-repo"},
|
||||
{"[email protected]:nektos/act.git", "GitHub", "nektos/act"},
|
||||
{"[email protected]:nektos/act", "GitHub", "nektos/act"},
|
||||
{"https://github.com/nektos/act.git", "GitHub", "nektos/act"},
|
||||
{"http://github.com/nektos/act.git", "GitHub", "nektos/act"},
|
||||
{"https://github.com/nektos/act", "GitHub", "nektos/act"},
|
||||
|
||||
Reference in new issue
Block a user