Skip to content

GL-1723: Added expires_at mandatory arg for codestudio token. #1934

GL-1723: Added expires_at mandatory arg for codestudio token.

GL-1723: Added expires_at mandatory arg for codestudio token. #1934

Triggered via pull request October 31, 2023 17:14
Status Success
Total duration 1m 9s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
57s
Mutation Testing
Fit to window
Zoom out
Zoom in

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']; }