Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Refactor gitCommitLink method in Application model

Andras Bacsaied9b63520d2f
diff --git a/app/Models/Application.php b/app/Models/Application.php
index dec13d2763..c4a6a18e24 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -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;
diff --git a/config/sentry.php b/config/sentry.php
index d7b8712875..52732a7c8a 100644
--- a/config/sentry.php
+++ b/config/sentry.php
@@ -7,7 +7,7 @@ return [
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
- 'release' => '4.0.0-beta.281',
+ 'release' => '4.0.0-beta.282',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),
diff --git a/config/version.php b/config/version.php
index b0e477b063..5ecc10c249 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,3 +1,3 @@
<?php
-return '4.0.0-beta.281';
+return '4.0.0-beta.282';
diff --git a/versions.json b/versions.json
index 0a0c2c9c5d..d8efef4e15 100644
--- a/versions.json
+++ b/versions.json
@@ -1,7 +1,7 @@
{
"coolify": {
"v4": {
- "version": "4.0.0-beta.281"
+ "version": "4.0.0-beta.282"
},
"sentinel": {
"version": "0.0.4"