List pre-receive hooks for a repository
List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.
GET
/repos/{owner}/{repo}/pre-receive-hooks- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Query Parameters
- per_page integeroptional
Results per page (max 100)
- page integeroptional
Page number of the results to fetch.
- direction stringoptional
One of `asc` (ascending) or `desc` (descending).
- sort stringoptional
Responses
application/json array[repository-pre-receive-hook object]
Response
items repository-pre-receive-hook object
items repository-pre-receive-hook object
configuration_url string
optionalenforcement string
optionalid integer
optionalname string
optional