@@ -51,7 +51,7 @@ <h1 id="repo-hooks-api">Repo Hooks API</h1>
5151< li >
5252< code > commit_comment</ code > - Any time a Commit is commented on.</ li >
5353< li >
54- < code > pull_request</ code > - Any time a Pull Request isopend , closed, or
54+ < code > pull_request</ code > - Any time a Pull Request isopened , closed, or
5555synchronized (updated due to a new push in the branch that the pull
5656request is tracking).</ li >
5757< li >
@@ -146,21 +146,23 @@ <h2 id="create-a-hook">Create a hook</h2>
146146< h3 id ="input "> Input</ h3 >
147147
148148< dl >
149- < dt > name</ dt >
149+ < dt > < code > name</ code > </ dt >
150150< dd >
151151< em > Required</ em > < strong > string</ strong > - The name of the service that is being called.
152152See< a href ="https://api.github.com/hooks "> /hooks</ a > for the possible names.</ dd >
153- < dt > config</ dt >
153+ < dt > < code > config</ code > </ dt >
154154< dd >
155155< em > Required</ em > < strong > hash</ strong > - A Hash containing key/value pairs to provide
156156settings for this hook. These settings vary between the services and
157157are defined in the
158- < a href ="https://github.com/github/github-services "> github-services</ a > repo.</ dd >
159- < dt > events</ dt >
158+ < a href ="https://github.com/github/github-services "> github-services</ a > repo.
159+ Booleans are stored internally as “1” for true, and “0” for false. Any
160+ JSON true/false values will be converted automatically.</ dd >
161+ < dt > < code > events</ code > </ dt >
160162< dd >
161163< em > Optional</ em > < strong > array</ strong > - Determines what events the hook is triggered
162164for. Default:< code > ["push"]</ code > .</ dd >
163- < dt > active</ dt >
165+ < dt > < code > active</ code > </ dt >
164166< dd >
165167< em > Optional</ em > < strong > boolean</ strong > - Determines whether the hook is actually
166168triggered on pushes.</ dd >
@@ -205,30 +207,32 @@ <h3 id="edit-a-hook">Edit a hook</h3>
205207< h3 id ="input-1 "> Input</ h3 >
206208
207209< dl >
208- < dt > name</ dt >
210+ < dt > < code > name</ code > </ dt >
209211< dd >
210212< em > Required</ em > < strong > string</ strong > - The name of the service that is being called.
211213See< a href ="https://api.github.com/hooks "> /hooks</ a > for the possible names.</ dd >
212- < dt > config</ dt >
214+ < dt > < code > config</ code > </ dt >
213215< dd >
214216< em > Required</ em > < strong > hash</ strong > - A Hash containing key/value pairs to provide
215217settings for this hook. Modifying this will replace the entire config
216218object. These settings vary between the services and
217219are defined in the
218- < a href ="https://github.com/github/github-services "> github-services</ a > repo.</ dd >
219- < dt > events</ dt >
220+ < a href ="https://github.com/github/github-services "> github-services</ a > repo.
221+ Booleans are stored internally as “1” for true, and “0” for false. Any
222+ JSON true/false values will be converted automatically.</ dd >
223+ < dt > < code > events</ code > </ dt >
220224< dd >
221225< em > Optional</ em > < strong > array</ strong > - Determines what events the hook is triggered
222226for. This replaces the entire array of events. Default:< code > ["push"]</ code > .</ dd >
223- < dt > add_events</ dt >
227+ < dt > < code > add_events</ code > </ dt >
224228< dd >
225229< em > Optional</ em > < strong > array</ strong > - Determines a list of events to be added to the
226230list of events that the Hook triggers for.</ dd >
227- < dt > remove_events</ dt >
231+ < dt > < code > remove_events</ code > </ dt >
228232< dd >
229233< em > Optional</ em > < strong > array</ strong > - Determines a list of events to be removed from the
230234list of events that the Hook triggers for.</ dd >
231- < dt > active</ dt >
235+ < dt > < code > active</ code > </ dt >
232236< dd >
233237< em > Optional</ em > < strong > boolean</ strong > - Determines whether the hook is actually
234238triggered on pushes.</ dd >
@@ -336,17 +340,17 @@ <h2 id="pubsubhubbub">PubSubHubbub</h2>
336340< h3 id ="parameters "> Parameters</ h3 >
337341
338342< dl >
339- < dt > hub.mode</ dt >
343+ < dt > < code > hub.mode</ code > </ dt >
340344< dd >
341345< em > Required</ em > < strong > string</ strong > - Either< code > subscribe</ code > or< code > unsubscribe</ code > .</ dd >
342- < dt > hub.topic</ dt >
346+ < dt > < code > hub.topic</ code > </ dt >
343347< dd >
344348< em > Required</ em > < strong > string</ strong > - The URI of the GitHub repository to subscribe
345349to. The path must be in the format of< code > /:user/:repo/events/:event</ code > .</ dd >
346- < dt > hub.callback</ dt >
350+ < dt > < code > hub.callback</ code > </ dt >
347351< dd >
348352< em > Required</ em > < strong > string</ strong > - The URI to receive the updates to the topic.</ dd >
349- < dt > hub.secret</ dt >
353+ < dt > < code > hub.secret</ code > </ dt >
350354< dd >
351355< em > Optional</ em > < strong > string</ strong > - A shared secret key that generates a SHA1 HMAC
352356of the payload content. You can verify a push came from GitHub by