protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->validateOptions(); $this->initializeOptions(); $this->git->initialize(); $result = $this->git->getGithubClient()->api('pull_request')->merge($this->calculated['pull']['user'], $this->calculated['pull']['repo'], $this->calculated['pull']['number'], $this->options['message']); $output->write($this->formatPullRequestResponse($result) . PHP_EOL); }
protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->validateOptions(); $this->initializeOptions(); $this->git->initialize(); $branchPr = new BranchPullRequest(new BranchGithub($this->calculated['head']['user'], $this->calculated['head']['repo'], $this->calculated['head']['branch']), new BranchGithub($this->calculated['base']['user'], $this->calculated['base']['repo'], $this->calculated['base']['branch']), $this->options['title'], $this->options['body']); $result = $this->git->submitPullRequest($branchPr); $output->write($this->formatPullRequestResponse($result) . PHP_EOL); }
protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->git->initialize(); $this->config = new BranchConfiguration(); if ($this->config->defaultWasLoaded()) { $this->config->writeConfig(); } $pushedObjects = $this->mergeUp($this->config->getConfig()); // If we have debug mode on, we delete the branch! if ($this->options['debug']) { $this->deleteBranches($pushedObjects); } }