mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
[bridges] migrate all bridges to an array based definition of parameters
see github issue 356 Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -13,30 +13,24 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
||||
$this->uri = '';
|
||||
$this->description = 'Returns the commits of a project hosted on a gitlab instance';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Base URI",
|
||||
"identifier" : "uri",
|
||||
"defaultValue":"https://gitlab.com"
|
||||
},
|
||||
{
|
||||
"name" : "User name",
|
||||
"identifier" : "u",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name" : "Project name",
|
||||
"identifier" : "p",
|
||||
"required":true
|
||||
},
|
||||
{
|
||||
"name" : "Project branch",
|
||||
"identifier" : "b",
|
||||
"defaultValue":"master"
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'uri'=>array(
|
||||
'name'=>'Base URI',
|
||||
'defaultValue'=>'https://gitlab.com'
|
||||
),
|
||||
'u'=>array(
|
||||
'name'=>'User name',
|
||||
'required'=>true
|
||||
),
|
||||
'p'=>array(
|
||||
'name'=>'Project name',
|
||||
'required'=>true
|
||||
),
|
||||
'b'=>array(
|
||||
'name'=>'Project branch',
|
||||
'defaultValue'=>'master'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
Reference in New Issue
Block a user