Skip to content

Latest commit

 

History

History
111 lines (54 loc) · 2.05 KB

GitRef.md

File metadata and controls

111 lines (54 loc) · 2.05 KB

gitRef

GitData References


gitRef.get(full_name, ref, options)

Get a Reference

GitHub API

Parameter Description
full_name String, owner/repo name of repo
ref String, full git ref
options Object, Optional request options

Example:

tentacles.gitRef.get('gitterHQ/tentacles', 'heads/master')

gitRef.listAll(full_name, ref, options)

Get all References

GitHub API

Parameter Description
full_name String, owner/repo name of repo
ref String, full git ref
options Object, Optional request options

gitRef.create(full_name, body, options)

Create a Reference

GitHub API

Parameter Description
full_name String, owner/repo name of repo
body Object, reference create body
options Object, Optional request options

gitRef.update(full_name, ref, body, options)

Update a Reference

GitHub API

Parameter Description
full_name String, owner/repo name of repo
ref String, full git ref
body Object, reference create body
options Object, Optional request options

gitRef.delete(full_name, ref, options)

Delete a Reference

GitHub API

Parameter Description
full_name String, owner/repo name of repo
ref String, full git ref
options Object, Optional request options