Пример #1
0
 /**
  * Set Issue-tracker configuration.
  *
  * When no explicit configuration for the issue-tracker is set
  * the repository information is reused (when possible).
  *
  * @param BaseCommand $command
  */
 private function setIssueTrackerDef(BaseCommand $command)
 {
     $issueTracker = $this->application->getConfig()->get('issue_tracker', Config::CONFIG_LOCAL, GitHelper::UNDEFINED_ADAPTER);
     $command->addOption('issue-adapter', 'ia', InputOption::VALUE_REQUIRED, sprintf('Adapter-name of the issue-tracker (%s)', $this->getSupportedAdapters(AdapterFactory::SUPPORT_ISSUE_TRACKER)), $issueTracker)->addOption('issue-org', 'io', InputOption::VALUE_REQUIRED, 'Name of the issue-tracker organization', $this->application->getConfig()->getFirstNotNull(['issue_project_org', 'repo_org'], Config::CONFIG_LOCAL, GitHelper::UNDEFINED_ORG))->addOption('issue-project', 'ip', InputOption::VALUE_REQUIRED, 'Repository/project name of the issue-tracker in the organization', $this->application->getConfig()->getFirstNotNull(['issue_project_name', 'repo_name'], Config::CONFIG_LOCAL, GitHelper::UNDEFINED_REPO));
 }