Skip to content

Commit

Permalink
Merge pull request #359 from Interhyp/RELTEC-12278-support-github-ssh…
Browse files Browse the repository at this point in the history
…-urls

RELTEC-12278: support repository github ssh urls
  • Loading branch information
KRaffael authored Nov 19, 2024
2 parents b7610e1 + 0efaf0e commit ef4d604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ func validateUrl(messages []string, repoUrl string) []string {
if repoUrl == "" {
messages = append(messages, "field url is mandatory")
} else {
if !strings.HasPrefix(repoUrl, "ssh://") {
if !(strings.HasPrefix(repoUrl, "ssh://") || strings.HasPrefix(repoUrl, "[email protected]")) {
messages = append(messages, "field url must contain ssh git url")
}
}
Expand Down

0 comments on commit ef4d604

Please sign in to comment.