From 3ca212ac9bf5ad41a7cda3e458ff8174644b914f Mon Sep 17 00:00:00 2001 From: Paul Hocker Date: Wed, 21 Apr 2021 19:49:13 -0500 Subject: [PATCH] fix(utils): change gitlab url to march new archive api (#236) --- src/Helpers/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helpers/Utils.php b/src/Helpers/Utils.php index 51fa330..66b8b7f 100644 --- a/src/Helpers/Utils.php +++ b/src/Helpers/Utils.php @@ -40,7 +40,7 @@ class Utils } elseif (sizeof(preg_grep('/^https:\/\/(gitlab\.com)\/[^\/]+?\/[^\/]+?$/i', [$repo_url])) == 0) { $light_warning[] = "\"$repo_url\" might not be correct; it should be similar to \"https://gitlab.com//\", unless the asset is hosted on a custom instance of GitLab. $light_warning_suffix"; } - return "$repo_url/repository/archive.zip?ref=$commit"; + return "$repo_url/-/archive/$commit.zip"; case 'BitBucket': if (sizeof(preg_grep('/^https:\/\/bitbucket\.org\/[^\/]+?\/[^\/]+?$/i', [$repo_url])) == 0) { $warning[] = "\"$repo_url\" doesn't look correct; it should be similar to \"https://bitbucket.org//\". $warning_suffix";