Skip to content

Commit 11407d0

Browse files
committed
Add language code to commit message
Before this, the commit message was just `translation update`. now it includes the language code, i.e. `Translation update (xx)`.
1 parent 432fcfa commit 11407d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Services/Repository/Repository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,9 @@ private function createAndSendPatchWithException(TranslationUpdateEntity $update
500500
// add files to local temporary git repository
501501
$this->applyChanges($tmpGit, $tmpDir, $update);
502502
// commit files to local temporary git repository
503+
$message = 'Translation update (' . $update->getLanguage() . ')';
503504
$author = $this->prepareAuthor($update);
504-
$tmpGit->commit('translation update', $author);
505+
$tmpGit->commit($message, $author);
505506

506507
$this->behavior->sendChange($tmpGit, $update, $this->git);
507508
}

0 commit comments

Comments
 (0)