/**
  * Submits the given release to github.
  *
  * @param \Guywithnose\ReleaseNotes\Prompt\PromptFactory $promptFactory The prompt factory.
  * @param \Guywithnose\ReleaseNotes\GithubClient $client The github client.
  * @param \Guywithnose\ReleaseNotes\Release $release The release information.
  * @return void
  */
 private function _submitRelease(PromptFactory $promptFactory, GithubClient $client, Release $release)
 {
     if ($promptFactory->invoke('Are you sure?', true, [], $release->previewFormat())) {
         $client->createRelease($release->githubFormat());
     }
 }