GitRef

class github.GitRef.GitRef

This class represents GitRefs. The reference can be found here https://developer.github.com/v3/git/refs/

object
Type:github.GitObject.GitObject
ref
Type:string
url
Type:string
delete()
Calls:DELETE /repos/:owner/:repo/git/refs/:ref
Return type:None
edit(sha, force=NotSet)
Calls:

PATCH /repos/:owner/:repo/git/refs/:ref

Parameters:
  • sha – string
  • force – bool
Return type:

None

get_statuses()

https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref :calls: GET /repos/:owner/:repo/commits/:ref/statuses :return:

get_status()

https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref :calls: GET /repos/:owner/:repo/commits/:ref/status :return: