mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 00:43:19 +03:00
[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.
This commit is contained in:
parent
18a8a51271
commit
14607c07f6
1 changed files with 6 additions and 6 deletions
|
@ -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 @@ class GitlabIssueBridge extends BridgeAbstract
|
|||
$uri .= '-/merge_requests';
|
||||
break;
|
||||
case 'Epic comments':
|
||||
$uri .= '-/epics';
|
||||
$uri = 'https://' . $host . '/groups/' . $this->getInput('u') . '/-/epics';
|
||||
break;
|
||||
default:
|
||||
return $uri;
|
||||
|
|
Loading…
Reference in a new issue