Skip to content
Extraits de code Groupes Projets
Valider d32be111 rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

no need to create a pull request if nothing changed

parent 1a061ab4
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -97,12 +97,20 @@ class CreatePull extends Command ...@@ -97,12 +97,20 @@ class CreatePull extends Command
$inputObject->setInteractive($input->isInteractive()); $inputObject->setInteractive($input->isInteractive());
$command->run($inputObject, $output); $command->run($inputObject, $output);
$output->writeln("Finished."); $changes = shell_exec('git status --porcelain -uno');
if (empty($changes)) {
$output->writeln("Nothing changed. Everything is already up to date.");
shell_exec('git checkout master > /dev/null 2>&1');
return;
}
shell_exec('git add lang/.'); shell_exec('git add lang/. > /dev/null 2>&1');
shell_exec('git commit -m "language update ${pluginName} refs #3430"'); shell_exec('git commit -m "language update ${pluginName} refs #3430"');
shell_exec('git push'); shell_exec('git push');
shell_exec('git checkout master > /dev/null 2>&1');
$this->createPullRequest($input, $output); $this->createPullRequest($input, $output);
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter