Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Allowed values:createdupdatedname
Default:created
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.
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Allowed values:createdupdatedname
Default:created
Response
pre_receive_hook_id parameter
Response
For pre-receive hooks which are allowed to be configured at the repo level, you can set enforcement
pre_receive_hook_id parameter
The state of enforcement for the hook on this repository.
Allowed values:enableddisabledtesting
Response
Deletes any overridden enforcement on this repository for the specified hook.
Responds with effective values inherited from owner and/or global level.
pre_receive_hook_id parameter
Responds with effective values inherited from owner and/or global level.
This endpoint allows you to check the status of the most recent configuration process:
Note that you may need to wait several seconds after you start a process before you can check its status.
The different statuses are:
Status | Description |
---|---|
PENDING |
The job has not started yet |
CONFIGURING |
The job is running |
DONE |
The job has finished correctly |
FAILED |
The job has finished unexpectedly |
Response