protected function execute(InputInterface $input, OutputInterface $output)
{
$tracker = $this->getIssueTracker();
$title = trim($input->getOption('title'));
$body = $input->getOption('body');
if ('' === $title) {
throw new UserException('Issue title cannot be empty, use the --title option to specify a title or use the interactive editor.');
}
if (!$this->getParameter($input, 'remove-promote')) {
$body = $this->appendPlug($body);
}
$issue = $tracker->openIssue($title, $body);
$url = $tracker->getIssueUrl($issue);
$this->getHelper('gush_style')->success("Created issue {$url}");
return self::COMMAND_SUCCESS;
}