Skip to main content

List pre-receive hooks for an organization

List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.

GET/orgs/{org}/pre-receive-hooks
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
org 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

The sort order for the response collection.

Responses

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

Response

items org-pre-receive-hook object
allow_downstream_configuration boolean
optional
configuration_url string
optional
enforcement string
optional
id integer
optional
name string
optional