GitRef

class github.GitRef.GitRef

This class represents GitRefs. The reference can be found here https://docs.github.com/en/rest/reference/git#references

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