mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +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 <me@hackerc.at>
This commit is contained in:
parent
48c5a8102b
commit
3b382dde40
2 changed files with 3 additions and 2 deletions
|
@ -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"},
|
||||
{"git@github.com:nektos/act.git", "GitHub", "nektos/act"},
|
||||
{"git@github.com: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"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue