@@ -28,9 +28,9 @@ public function show($subrepositoryName, $packageName)
2828 return $ this ->get (sprintf ('/subrepositories/%s/packages/%s ' , $ subrepositoryName , $ packageName ));
2929 }
3030
31- public function createVcsPackage ($ subrepositoryName , $ url , $ credentialId = null )
31+ public function createVcsPackage ($ subrepositoryName , $ url , $ credentialId = null , $ type = ' vcs ' )
3232 {
33- return $ this ->post (sprintf ('/subrepositories/%s/packages/ ' , $ subrepositoryName ), ['repoType ' => ' vcs ' , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
33+ return $ this ->post (sprintf ('/subrepositories/%s/packages/ ' , $ subrepositoryName ), ['repoType ' => $ type , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
3434 }
3535
3636 public function createCustomPackage ($ subrepositoryName , $ customJson , $ credentialId = null )
@@ -42,9 +42,9 @@ public function createCustomPackage($subrepositoryName, $customJson, $credential
4242 return $ this ->post (sprintf ('/subrepositories/%s/packages/ ' , $ subrepositoryName ), ['repoType ' => 'package ' , 'repoConfig ' => $ customJson , 'credentials ' => $ credentialId ]);
4343 }
4444
45- public function editVcsPackage ($ subrepositoryName , $ packageName , $ url , $ credentialId = null )
45+ public function editVcsPackage ($ subrepositoryName , $ packageName , $ url , $ credentialId = null , $ type = ' vcs ' )
4646 {
47- return $ this ->put (sprintf ('/subrepositories/%s/packages/%s/ ' , $ subrepositoryName , $ packageName ), ['repoType ' => ' vcs ' , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
47+ return $ this ->put (sprintf ('/subrepositories/%s/packages/%s/ ' , $ subrepositoryName , $ packageName ), ['repoType ' => $ type , 'repoUrl ' => $ url , 'credentials ' => $ credentialId ]);
4848 }
4949
5050 public function editCustomPackage ($ subrepositoryName , $ packageName , $ customJson , $ credentialId = null )
0 commit comments