Skip to content

Commit 0a0ec28

Browse files
committed
Merge pull request github#246 from dsheets/patch-2
/repos/:owner/:repo/hooks/:id/tests is `push` only
2 parents 0037bbf + 05ec968 commit 0a0ec28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/v3/repos/hooks.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,12 @@ triggered on pushes.
159159
<%= headers 200 %>
160160
<%= json :hook %>
161161

162-
## Test a hook
162+
## Test a `push` hook
163163

164164
This will trigger the hook with the latest push to the current
165-
repository.
165+
repository if the hook is subscribed to `push` events. If the
166+
hook is not subscribed to `push` events, the server will respond
167+
with 204 but no test POST will be generated.
166168

167169
POST /repos/:owner/:repo/hooks/:id/tests
168170

0 commit comments

Comments
 (0)