mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 08:54:20 +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' => [
|
'u' => [
|
||||||
'name' => 'User/Organization name',
|
'name' => 'User/Organization name',
|
||||||
'exampleValue' => 'fdroid',
|
'exampleValue' => 'gitlab-org',
|
||||||
'required' => true
|
'required' => true
|
||||||
],
|
],
|
||||||
'p' => [
|
'p' => [
|
||||||
'name' => 'Project name',
|
'name' => 'Project name',
|
||||||
'exampleValue' => 'fdroidclient',
|
'exampleValue' => 'gitlab-foss',
|
||||||
'required' => true
|
'required' => true
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ class GitlabIssueBridge extends BridgeAbstract
|
||||||
'i' => [
|
'i' => [
|
||||||
'name' => 'Issue number',
|
'name' => 'Issue number',
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'exampleValue' => '2099',
|
'exampleValue' => '1',
|
||||||
'required' => true
|
'required' => true
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -40,7 +40,7 @@ class GitlabIssueBridge extends BridgeAbstract
|
||||||
'i' => [
|
'i' => [
|
||||||
'name' => 'Merge Request number',
|
'name' => 'Merge Request number',
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'exampleValue' => '2099',
|
'exampleValue' => '1',
|
||||||
'required' => true
|
'required' => true
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -48,7 +48,7 @@ class GitlabIssueBridge extends BridgeAbstract
|
||||||
'i' => [
|
'i' => [
|
||||||
'name' => 'Epic number',
|
'name' => 'Epic number',
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'exampleValue' => '2099',
|
'exampleValue' => '1',
|
||||||
'required' => true
|
'required' => true
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -86,7 +86,7 @@ class GitlabIssueBridge extends BridgeAbstract
|
||||||
$uri .= '-/merge_requests';
|
$uri .= '-/merge_requests';
|
||||||
break;
|
break;
|
||||||
case 'Epic comments':
|
case 'Epic comments':
|
||||||
$uri .= '-/epics';
|
$uri = 'https://' . $host . '/groups/' . $this->getInput('u') . '/-/epics';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return $uri;
|
return $uri;
|
||||||
|
|
Loading…
Reference in a new issue