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

Method manageRepo

lib/Team.js:130–133  ·  view source on GitHub ↗

* Add or Update repo management status for team * @see https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository * @param {string} owner - Organization name * @param {string} repo - Repo name * @param {object} options - Parameters for adding or updating repo managemen

(owner, repo, options, cb)

Source from the content-addressed store, hash-verified

128 * @return {Promise} - the promise for the http request
129 */
130 manageRepo(owner, repo, options, cb) {
131 log(`Adding or Updating repo management by Team ${this.__teamId} for repo ${owner}/${repo}`);
132 return this._request204or404(`/teams/${this.__teamId}/repos/${owner}/${repo}`, options, cb, 'PUT');
133 }
134
135 /**
136 * Remove repo management status for team

Callers 1

team.spec.jsFile · 0.80

Calls 1

_request204or404Method · 0.80

Tested by

no test coverage detected