Making the public key a property that we store for projects, and displaying it for later use.
This commit is contained in:
parent
616d52e025
commit
195d85a82c
9 changed files with 816 additions and 655 deletions
|
|
@ -212,6 +212,7 @@ class ProjectController extends \PHPCI\Controller
|
|||
}
|
||||
|
||||
$values['git_key'] = $values['key'];
|
||||
$values['public_key'] = $values['pubkey'];
|
||||
|
||||
$project = new Project();
|
||||
$project->setValues($values);
|
||||
|
|
@ -242,6 +243,7 @@ class ProjectController extends \PHPCI\Controller
|
|||
} else {
|
||||
$values = $project->getDataArray();
|
||||
$values['key'] = $values['git_key'];
|
||||
$values['pubkey'] = $values['public_key'];
|
||||
|
||||
if ($values['type'] == "gitlab") {
|
||||
$accessInfo = $project->getAccessInformation();
|
||||
|
|
@ -265,6 +267,7 @@ class ProjectController extends \PHPCI\Controller
|
|||
|
||||
$values = $form->getValues();
|
||||
$values['git_key'] = $values['key'];
|
||||
$values['public_key'] = $values['pubkey'];
|
||||
|
||||
if ($values['type'] == "gitlab") {
|
||||
preg_match('`^(.*)@(.*):(.*)/(.*)\.git`', $values['reference'], $matches);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue