This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook is not subscribed to push events, the server will respond with 204 but no test POST will be generated.Note: Previously /repos/:owner/:repo/hooks/:hook_id/test
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.github.com/repos///hooks//tests'
Response Response Example
204 - Example 1
{}
Request
Path Params
owner
stringÂ
required
The account owner of the repository. The name is not case sensitive.
repo
stringÂ
required
The name of the repository. The name is not case sensitive.