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

Commit

Permalink
Change back to hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Potter committed Mar 12, 2016
1 parent 00e40e2 commit 64f2188
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/octonode/org.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/octonode/repo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/octonode/org.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Org

# Create a hook
# '/orgs/flatiron/hub/hooks' POST
createHook: (hook, cb) ->
hook: (hook, cb) ->
@client.post "/orgs/#{@name}/hooks", hook, (err, s, b, h) ->
return cb(err) if err
if s isnt 201 then cb(new Error("Org createHook error")) else cb null, b, h
Expand Down
2 changes: 1 addition & 1 deletion src/octonode/repo.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class Repo

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

0 comments on commit 64f2188

Please sign in to comment.