new GithubApp(config)
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
config | 
            
            Object | 
                Properties
  | 
        
Properties:
| Name | Type | Description | 
|---|---|---|
app | 
            
            Object | Instance of github-app (TODO:add link)  | 
        
Methods
- 
    
<async> createOrUpdateComment(target_identifier, comment)
 - 
    
    
Create or update an Issue. If comment.id is provided, update the corresponding comment, otherwise create a new one.
Parameters:
Name Type Description target_identifierIdentifier Identifier pointing at a github repository
commentComment Returns:
The github comment number
- Type
 - String
 
 - 
    
<async> createOrUpdateIssue(target_identifier, issue)
 - 
    
    
Create or Update an Issue. If issue.number is provided, update the corresponding issue, otherwise create a new one .
Parameters:
Name Type Description target_identifierIdentifier Identifier pointing at a github repository
issueIssue Returns:
The github issue number
- Type
 - String
 
 - 
    
<async> getRepositories(installation_id)
 - 
    
    
Get all repositories the installation has access to.
This method is augumented by module:docloop#cache(2000). Return values will be cached for 2 seconds, to prevent huge numbers of API calls.
Parameters:
Name Type Description installation_idString GithubApp installation id
Returns:
For each repository a subset of the data provided by github.
- Type
 - Array.<Object>