# Functions
AddOwnerHook adds a hook to an user or organization.
AddRepoHook add a hook to a repo.
AddSystemHook add a system hook.
ConvertToObjectID returns a full-length SHA1 from a potential ID string.
DeleteOwnerHook deletes the hook owned by the owner.
EditOwnerHook updates a webhook of an user or organization.
EditRepoHook edit webhook `w` according to `form`.
EditSystemHook edit system webhook `w` according to `form`.
GetGitRefs return git references based on filter.
GetListOptions returns list options using the page and limit parameters.
GetOwnerHook gets an user or organization webhook.
GetRepoHook get a repo's webhook.
ListOwnerHooks lists the webhooks of the provided owner.
MustConvertToSHA1 returns a full-length SHA1 string from a potential ID string, or returns origin input if it can't convert to SHA1.
ResolveRefOrSha resolve ref to sha if exist.