Example #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]);
 }
Example #2
0
 /**
  * Execute the action.
  *
  * @param  string  $name
  * @param  string  $branch
  * @param  string  $title
  * @return void
  */
 public function execute($name, $branch, $title)
 {
     if (is_dir(getcwd() . '/' . $name)) {
         $this->kill('That directory already exists!');
     }
     $username = $this->github->getUsername();
     foreach ($this->tasks as $task) {
         $this->{$task}($username, $name, $branch, $title);
     }
     $this->info('Done! Thank you for your contributions!');
 }
Example #3
0
 /**
  * Execute the action.
  *
  * @return void
  */
 public function execute()
 {
     $this->task('Deleting Liferaft Repository...', function () {
         try {
             $this->github->deleteRepository($this->github->getUsername(), 'liferaft');
         } catch (\Exception $e) {
             $this->failAndKill('Unable to delete repository. Does your GitHub token have enough permissions?');
         }
         @unlink(getcwd() . '/liferaft.md');
     });
     $this->info('Done! This directory may be deleted.');
 }