mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 00:14:24 +00:00
Refactor gitCommitLink method in Application model
This commit is contained in:
1 parent
edc3b014cd
commit
ed9b63520d
4 files changed
+3
-6
No files matched your search
@@ -199,9 +199,6 @@ class Application extends BaseModel
|
||||
}
|
||||
if (strpos($this->git_repository, 'git@') === 0) {
|
||||
$git_repository = str_replace(['git@', ':', '.git'], ['', '/', ''], $this->git_repository);
|
||||
if (str($this->source->html_url)->contains('bitbucket')) {
|
||||
return "https://{$git_repository}/commits/{$link}";
|
||||
}
|
||||
return "https://{$git_repository}/commit/{$link}";
|
||||
}
|
||||
return $this->git_repository;
|
||||
|
||||
Reference in new issue
Block a user