repository

List the Git hooks in a repository

get/repos/{owner}/{repo}/hooks/git

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Response

GitHookList

contentstring

Content contains the script content of the hook

is_activeboolean

IsActive indicates if the hook is active

namestring

Name is the name of the Git hook

Changes

No recorded changes to this endpoint across all 5 revisions of this API.