* Update a ref * @see https://developer.github.com/v3/git/refs/#update-a-reference * @param {string} ref - the ref to update * @param {string} commitSHA - the SHA to point the reference to * @param {boolean} force - indicates whether to force or ensure a fast-forward update * @pa
(ref, commitSHA, force, cb)
| 402 | * @return {Promise} - the promise for the http request |
| 403 | */ |
| 404 | updateHead(ref, commitSHA, force, cb) { |
| 405 | return this._request('PATCH', `/repos/${this.__fullname}/git/refs/${ref}`, { |
| 406 | sha: commitSHA, |
| 407 | force: force, |
| 408 | }, cb); |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * Update commit status |