Update actions/checkout action to v4 #779
Annotations
10 warnings
src/Application/Command/SwitchDefaultBranchToNextMinor.php#L34
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
parent::__construct('laminas:automatic-releases:switch-default-branch-to-next-minor');
}
- public function execute(InputInterface $input, OutputInterface $output) : int
+ protected function execute(InputInterface $input, OutputInterface $output) : int
{
$event = $this->loadGithubEvent->__invoke();
$repositoryPath = $this->variables->githubWorkspacePath();
|
src/Changelog/ChangelogExistsViaConsole.php#L18
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public function __invoke(BranchName $sourceBranch, string $repositoryDirectory) : bool
{
try {
- Shell\execute('git', ['show', 'origin/' . $sourceBranch->name() . ':CHANGELOG.md'], $repositoryDirectory);
+ Shell\execute('git', ['show', $sourceBranch->name() . ':CHANGELOG.md'], $repositoryDirectory);
return true;
} catch (Shell\Exception\FailedExecutionException) {
return false;
|
src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L24
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
}
public function __invoke(UriInterface $repositoryUri, UriInterface $uriWithCredentials, string $repositoryRootDirectory) : void
{
- Shell\execute('git', ['config', '--global', '--add', 'safe.directory', '*'], $repositoryRootDirectory);
+
try {
Shell\execute('git', ['remote', 'rm', 'origin'], $repositoryRootDirectory);
} catch (Shell\Exception\FailedExecutionException) {
|
src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
} catch (Shell\Exception\FailedExecutionException) {
}
$credentialStore = Filesystem\create_temporary_file();
- Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory);
+ Shell\execute('git', ['config', 'credential.helper', $credentialStore . 'store --file='], $repositoryRootDirectory);
File\write($credentialStore, $uriWithCredentials->__toString());
Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory);
Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
|
src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
} catch (Shell\Exception\FailedExecutionException) {
}
$credentialStore = Filesystem\create_temporary_file();
- Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory);
+ Shell\execute('git', ['config', 'credential.helper', $credentialStore], $repositoryRootDirectory);
File\write($credentialStore, $uriWithCredentials->__toString());
Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory);
Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
|
src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
} catch (Shell\Exception\FailedExecutionException) {
}
$credentialStore = Filesystem\create_temporary_file();
- Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory);
+ Shell\execute('git', ['config', 'credential.helper', 'store --file='], $repositoryRootDirectory);
File\write($credentialStore, $uriWithCredentials->__toString());
Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory);
Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
|
src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
} catch (Shell\Exception\FailedExecutionException) {
}
$credentialStore = Filesystem\create_temporary_file();
- Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory);
+
File\write($credentialStore, $uriWithCredentials->__toString());
Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory);
Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
|
src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L34
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
}
$credentialStore = Filesystem\create_temporary_file();
Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory);
- File\write($credentialStore, $uriWithCredentials->__toString());
+
Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory);
Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
Shell\execute('git', ['config', 'user.email', $this->variables->gitAuthorEmail()], $repositoryRootDirectory);
|
src/Git/HasTagViaConsole.php#L18
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
public function __invoke(string $repositoryDirectory, string $tagName) : bool
{
$output = Shell\execute('git', ['tag', '--list', $tagName], $repositoryDirectory);
- if (trim($output) === '') {
+ if ($output === '') {
return false;
}
return str_contains($output, $tagName);
}
}
|
src/Git/PushViaConsole.php#L23
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
Shell\execute('git', ['push', 'origin', $symbol], $repositoryDirectory);
return;
}
- $localTemporaryBranch = 'temporary-branch' . SecureRandom\string(8);
+ $localTemporaryBranch = 'temporary-branch' . SecureRandom\string(7);
Shell\execute('git', ['branch', $localTemporaryBranch, $symbol], $repositoryDirectory);
Shell\execute('git', ['push', 'origin', $localTemporaryBranch . ':' . $alias], $repositoryDirectory);
Shell\execute('git', ['branch', '-D', $localTemporaryBranch], $repositoryDirectory);
}
}
|
The logs for this run have expired and are no longer available.
Loading