public function addNotes($notes, $commitHash, $ref)
{
$tmpName = $this->filesystemHelper->newTempFilename();
file_put_contents($tmpName, $notes);
$commands = ['git', 'notes', '--ref=' . $ref, 'add', '-F', $tmpName, $commitHash];
$this->processHelper->runCommand($commands, true);
}