v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Get a Git hook

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

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

idstring required

id of the hook to get

Response

GitHook

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