v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
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