From f546dae9c3aa62f192b0f4b40904bad96ce27225 Mon Sep 17 00:00:00 2001 From: Mynacol Date: Sun, 27 Aug 2023 13:14:21 +0200 Subject: [PATCH] [GitlabIssueBridge] Fix example values for MR These values are used for testing and PR artifacts, but https://gitlab.com/fdroid/fdroidclient currently has no MR !2099, leading to a HTTP 404 error. This just uses issue #1 and MR !1. To support epics, the specified repository is ignored. --- bridges/GitlabIssueBridge.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bridges/GitlabIssueBridge.php b/bridges/GitlabIssueBridge.php index 27c194678df..f900335f607 100644 --- a/bridges/GitlabIssueBridge.php +++ b/bridges/GitlabIssueBridge.php @@ -18,12 +18,12 @@ class GitlabIssueBridge extends BridgeAbstract ], 'u' => [ 'name' => 'User/Organization name', - 'exampleValue' => 'fdroid', + 'exampleValue' => 'gitlab-org', 'required' => true ], 'p' => [ 'name' => 'Project name', - 'exampleValue' => 'fdroidclient', + 'exampleValue' => 'gitlab-foss', 'required' => true ] @@ -32,7 +32,7 @@ class GitlabIssueBridge extends BridgeAbstract 'i' => [ 'name' => 'Issue number', 'type' => 'number', - 'exampleValue' => '2099', + 'exampleValue' => '1', 'required' => true ] ], @@ -40,7 +40,7 @@ class GitlabIssueBridge extends BridgeAbstract 'i' => [ 'name' => 'Merge Request number', 'type' => 'number', - 'exampleValue' => '2099', + 'exampleValue' => '1', 'required' => true ] ], @@ -48,7 +48,7 @@ class GitlabIssueBridge extends BridgeAbstract 'i' => [ 'name' => 'Epic number', 'type' => 'number', - 'exampleValue' => '2099', + 'exampleValue' => '1', 'required' => true ] ] @@ -86,7 +86,7 @@ public function getURI() $uri .= '-/merge_requests'; break; case 'Epic comments': - $uri .= '-/epics'; + $uri = 'https://' . $host . '/groups/' . $this->getInput('u') . '/-/epics'; break; default: return $uri;