GitHubInfo

GitHubInfo

Class retrieving GitHub informations from the folder where .git is initialised.

Constructor

new GitHubInfo()

Source:

Members

options

Getter for the options

Source:

repo

Getter for the repo

Source:

token

Getter for the token

Source:

Methods

(private) _executeCommand(command, callback) → {Promise}

Execute a command in the bash and run a callback

Since:
  • 0.5.0
Source:
Parameters:
Name Type Description
command string

The command to execute

callback function

The callback which returns the stdout

Returns:
Type:
Promise

_repo(callback) → {Promise}

Get repo informations

Since:
  • 0.5.0
Source:
Parameters:
Name Type Description
callback function
Returns:
Type:
Promise

The promise that resolves repo informations ({user: user, name: name})

_token(callback) → {Promise}

Get token informations

Since:
  • 0.5.0
Source:
Parameters:
Name Type Description
callback function
Returns:
Type:
Promise

The promise that resolves token informations ({token: token})