From ed9b63520d2f94a665e6ee5f92caef234b205bcd Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 17 May 2024 13:40:28 +0200 Subject: [PATCH] Refactor gitCommitLink method in Application model --- app/Models/Application.php | 3 --- config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Models/Application.php b/app/Models/Application.php index dec13d276..c4a6a18e2 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 d7b871287..52732a7c8 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 b0e477b06..5ecc10c24 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@