Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Commit 64f2188

Browse files
author
Chris Potter
committed
Change back to hook
1 parent 00e40e2 commit 64f2188

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/octonode/org.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/octonode/repo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/octonode/org.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Org
148148

149149
# Create a hook
150150
# '/orgs/flatiron/hub/hooks' POST
151-
createHook: (hook, cb) ->
151+
hook: (hook, cb) ->
152152
@client.post "/orgs/#{@name}/hooks", hook, (err, s, b, h) ->
153153
return cb(err) if err
154154
if s isnt 201 then cb(new Error("Org createHook error")) else cb null, b, h

src/octonode/repo.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class Repo
439439

440440
# Create a hook
441441
# '/repos/pksunkara/hub/hooks' POST
442-
createHook: (hook, cb) ->
442+
hook: (hook, cb) ->
443443
@client.post "/repos/#{@name}/hooks", hook, (err, s, b, h) ->
444444
return cb(err) if err
445445
if s isnt 201 then cb(new Error("Repo createHook error")) else cb null, b, h

0 commit comments

Comments
 (0)