Skip to content

Commit

Permalink
[GitlabIssueBridge] Fix example values for MR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mynacol authored and dvikan committed Sep 12, 2023
1 parent 674c2ff commit f546dae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bridges/GitlabIssueBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
]

Expand All @@ -32,23 +32,23 @@ class GitlabIssueBridge extends BridgeAbstract
'i' => [
'name' => 'Issue number',
'type' => 'number',
'exampleValue' => '2099',
'exampleValue' => '1',
'required' => true
]
],
'Merge Request comments' => [
'i' => [
'name' => 'Merge Request number',
'type' => 'number',
'exampleValue' => '2099',
'exampleValue' => '1',
'required' => true
]
],
'Epic comments' => [
'i' => [
'name' => 'Epic number',
'type' => 'number',
'exampleValue' => '2099',
'exampleValue' => '1',
'required' => true
]
]
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f546dae

Please sign in to comment.