Methods
(async) getAuthors(configs) → {Promise.<Array.<Array.<string>>>}
Get the GitHub usernames of the authors to the given paths.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
configs |
Object |
Properties
|
Returns:
An array of the authors to each file.
- Type
- Promise.<Array.<Array.<string>>>
newCache() → {Map.<string, string>}
Get an empty cache
Returns:
An empty cache
- Type
- Map.<string, string>
(async) readCache(cachePath) → {Promise.<Map.<string, string>>}
Read from a cache file.
Parameters:
Name | Type | Description |
---|---|---|
cachePath |
string | The path to the cache file. |
Returns:
The cache.
- Type
- Promise.<Map.<string, string>>
(async) writeCache(cache, cachePath)
Write cache to a cache file.
Parameters:
Name | Type | Description |
---|---|---|
cache |
Map.<string, string> | The cache. |
cachePath |
string | The path to the cache file. |
Type Definitions
OnErrorCallback(shaopt, emailopt, erroropt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
sha |
string |
<optional> |
The sha of the commit which caused the error. |
email |
string |
<optional> |
The email of the author to the commit which caused the error. |
error |
any |
<optional> |
The error. |