GL-1723: Added expires_at mandatory arg for codestudio token. #1934
Annotations
1 warning
Mutation Testing:
src/Command/CodeStudio/CodeStudioWizardCommand.php#L166
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$this->checklist->completePreviousItem();
}
$this->checklist->addItem("Creating access token named <comment>{$projectAccessTokenName}</comment>");
- $projectAccessToken = $this->gitLabClient->projects()->createProjectAccessToken($project['id'], ['expires_at' => new DateTime('+365 days'), 'name' => $projectAccessTokenName, 'scopes' => ['api', 'write_repository']]);
+ $projectAccessToken = $this->gitLabClient->projects()->createProjectAccessToken($project['id'], ['name' => $projectAccessTokenName, 'scopes' => ['api', 'write_repository']]);
$this->checklist->completePreviousItem();
return $projectAccessToken['token'];
}
|