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

Method isMember

lib/Organization.js:54–56  ·  view source on GitHub ↗

* Query if the user is a member or not * @param {string} username - the user in question * @param {Requestable.callback} [cb] - will receive true if the user is a member * @return {Promise} - the promise for the http request

(username, cb)

Source from the content-addressed store, hash-verified

52 * @return {Promise} - the promise for the http request
53 */
54 isMember(username, cb) {
55 return this._request204or404(`/orgs/${this.__name}/members/${username}`, null, cb);
56 }
57
58 /**
59 * List the users who are members of the company

Callers 1

Calls 1

_request204or404Method · 0.80

Tested by

no test coverage detected