示例#1
0
 /**
  * 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]);
 }
示例#2
0
 /**
  * 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']);
     });
 }