@@ -69,8 +69,6 @@ class InitCommand extends Command implements Isolatable
69
69
70
70
protected string $ appName ;
71
71
72
- protected ?string $ reviewer = null ;
73
-
74
72
public function handle (): void
75
73
{
76
74
$ this ->prepareAppName ();
@@ -461,8 +459,8 @@ protected function prepareAppName(): void
461
459
462
460
protected function saveRenovateJSON (): void
463
461
{
464
- $ this -> reviewer = $ this ->validateInput (
465
- method: fn () => $ this ->ask ('Please type username of the project reviewer ' , Str::before ($ this ->reviewer , '@ ' )),
462
+ $ reviewer = $ this ->validateInput (
463
+ method: fn () => $ this ->ask ('Please type username of the project reviewer ' , Str::before ($ this ->codeOwnerEmail , '@ ' )),
466
464
field: 'username of the project reviewer ' ,
467
465
rules: 'required|alpha_dash ' ,
468
466
);
@@ -471,7 +469,7 @@ protected function saveRenovateJSON(): void
471
469
'$schema ' => 'https://docs.renovatebot.com/renovate-schema.json ' ,
472
470
'extends ' => ['config:recommended ' ],
473
471
'enabledManagers ' => ['composer ' ],
474
- 'assignees ' => [$ this -> reviewer ],
472
+ 'assignees ' => [$ reviewer ],
475
473
];
476
474
477
475
file_put_contents ('renovate.json ' , json_encode ($ data , JSON_PRETTY_PRINT ));
0 commit comments