Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function configure()
 {
     $this->setName('merge')->setDescription('Merges the pull request given')->addArgument('pr', InputArgument::REQUIRED, 'Pull Request number')->addOption('force', null, InputOption::VALUE_NONE, 'Enforce the merge if PR is in unstable state')->addOption('branch', null, InputOption::VALUE_REQUIRED, 'Target branch', 'master');
     parent::configure();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function configure()
 {
     $this->setName('sync')->setDescription('Syncs main repository branch to local branch and sync back to remote')->addArgument('branch', InputArgument::OPTIONAL, 'branch name', 'master')->addOption('remote', '', InputOption::VALUE_REQUIRED, 'origin', 'origin');
     parent::configure();
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function configure()
 {
     $this->setName('sha2pr')->setDescription('Find the pull request for a given sha')->addArgument('sha', InputArgument::REQUIRED, 'sha of commit')->addOption('branch', 'b', InputOption::VALUE_REQUIRED, 'master');
     parent::configure();
 }