* List the commits on a repository, optionally filtering by path, author or time range * @see https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository * @param {Object} [options] - the filtering options for commits * @param {string} [options.sha] - the SHA or branch to
(options, cb)
| 187 | * @return {Promise} - the promise for the http request |
| 188 | */ |
| 189 | listCommits(options, cb) { |
| 190 | options = options || {}; |
| 191 | if (typeof options === 'function') { |
| 192 | cb = options; |
| 193 | options = {}; |
| 194 | } |
| 195 | options.since = this._dateToISO(options.since); |
| 196 | options.until = this._dateToISO(options.until); |
| 197 | |
| 198 | return this._request('GET', `/repos/${this.__fullname}/commits`, options, cb); |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * List the commits on a pull request |
nothing calls this directly
no test coverage detected