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

Method isManagedRepo

lib/Team.js:114–117  ·  view source on GitHub ↗

* Get repo management status for team * @see https://developer.github.com/v3/orgs/teams/#remove-team-membership * @param {string} owner - Organization name * @param {string} repo - Repo name * @param {Requestable.callback} [cb] - will receive the membership status of added user *

(owner, repo, cb)

Source from the content-addressed store, hash-verified

112 * @return {Promise} - the promise for the http request
113 */
114 isManagedRepo(owner, repo, cb) {
115 log(`Getting repo management by Team ${this.__teamId} for repo ${owner}/${repo}`);
116 return this._request204or404(`/teams/${this.__teamId}/repos/${owner}/${repo}`, undefined, cb);
117 }
118
119 /**
120 * Add or Update repo management status for team

Callers 1

team.spec.jsFile · 0.80

Calls 1

_request204or404Method · 0.80

Tested by

no test coverage detected