public function getIssueNumber()
{
$segments = explode('-', $this->getActiveBranchName(), 2);
if (!isset($segments[1])) {
throw new UserException(['Unable to extract issue-number from the current branch name.', 'Please provide an issue number with the command.']);
}
return $segments[0];
}