Skip to main content

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 string
required
repo string
required
Query Parameters
per_page integer
optional

Results per page (max 100)

page integer
optional

Page number of the results to fetch.

direction string
optional

One of `asc` (ascending) or `desc` (descending).

sort string
optional

Responses

application/json array[repository-pre-receive-hook object]

Response

items repository-pre-receive-hook object
configuration_url string
optional
enforcement string
optional
id integer
optional
name string
optional