MCPcopy Index your code
hub / github.com/github-tools/github / listCommits

Method listCommits

lib/Repository.js:189–199  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_dateToISOMethod · 0.80
_requestMethod · 0.80

Tested by

no test coverage detected