Methods
_exec(key, action, paramsopt) → {Promise.<Object>}
Generic exec method for calling octokit methods
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
String
|
Key for exec call (return object key) |
|
action |
function
|
Octokit action to be used |
|
params |
Object
|
<optional> |
Additional params (sent to github) |
Returns:
- Type:
-
Promise.<Object>
- Returns promise with response data
_loadPath(optionsopt)
Load a given path with options
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object
|
<optional> |
Load path options |
auth(token)
Authorize this GitHub instance
Parameters:
Name | Type | Description |
---|---|---|
token |
String
|
GitHub access token |
branch(params)
Get a single branch for a specific repo
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
branches(params)
Get branches for a specific repo
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
collaborators(params)
Get collaborators for a specific repo
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
contributors(params)
Get contributors for a specific repo
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
createFile(params)
Create a file on github
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
deleteFile(params)
Update a file on github
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
files(paramsopt)
Get file(s) list or conent from github
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
<optional> |
Parameters
|
jekyll(params)
Create a new Jekyll instance for this GitHub connection
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
orgs(paramsopt)
List orgs for authenticated user
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object
|
<optional> |
Additional params (sent to github) |
repo(params)
Get a specific repo
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
repos(paramsopt)
List repos for authenticated user
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object
|
<optional> |
Additional params (sent to github) |
updateFile(params)
Update a file on github
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|
upsertFiles(params)
Create or update 1 or more files on github
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Parameters
|