public function githubAuth()
    {
        if ($this->hasAuth()) {
            $this->io()->warning(
                'A personal GitHub access token has already been setup.'
            );

            return;
        }
        $this->io()->note("A personal GitHub access token is required.\n\n" .
            'If you need help setting up a access token follow the GitHub guide:' .
            ' https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/');

        $user = $this->ask('GitHub username:');
        $pass = $this->askHidden('GitHub token (hidden):');

        $status = $this->gitHubUserAuth()
            ->setUser($user)
            ->setToken($pass)
            ->save();

        if (!$status) {
            $this->io()->success(
                "You've successfully added your personal GitHub access token."
            );
        }
    }
public function githubAuth()
    {
        if ($this->hasAuth()) {
            $this->io()->warning(
                'A personal GitHub access token has already been setup.'
            );

            return;
        }
        $this->io()->note("A personal GitHub access token is required.\n\n" .
            'If you need help setting up a access token follow the GitHub guide:' .
            ' https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/');

        $user = $this->ask('GitHub username:');
        $pass = $this->askHidden('GitHub token (hidden):');

        $status = $this->gitHubUserAuth()
            ->setUser($user)
            ->setToken($pass)
            ->save();

        if (!$status) {
            $this->io()->success(
                "You've successfully added your personal GitHub access token."
            );
        }
    }
public function githubAuth ( ) { if ( $ this -> hasAuth ( ) ) { $ this -> io ( ) -> warning ( 'A personal GitHub access token has already been setup.' ) ; return ; } $ this -> io ( ) -> note ( "A personal GitHub access token is required.\n\n" . 'If you need help setting up a access token follow the GitHub guide:' . ' https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/' ) ; $ user = $ this -> ask ( 'GitHub username:' ) ; $ pass = $ this -> askHidden ( 'GitHub token (hidden):' ) ; $ status = $ this -> gitHubUserAuth ( ) -> setUser ( $ user ) -> setToken ( $ pass ) -> save ( ) ; if ( ! $ status ) { $ this -> io ( ) -> success ( "You've successfully added your personal GitHub access token." ) ; } }
Authenticate GitHub user.
Authenticate GitHub user .