/** * Execute the action. * * @param string $toBranch * @return void */ public function execute($toBranch) { $url = $this->task('Sending Application To Laravel Team...', function () use($toBranch) { return $this->sendPullRequest($this->github->getUsername(), $this->git->getCurrentBranch(), $toBranch, $this->getLiferaftFile()); }); $this->info(['Pull request sent! Thank you for the bug report!', 'URL: ' . $url]); }
/** * Pull the Liferaft application into the branch. * * @param array $pull * @return void */ protected function pullLiferaftApplication($pull) { $this->task('Pulling Liferaft Application...', function () use($pull) { $this->git->pull($pull['user'], 'liferaft', $pull['from_branch']); }); }