Skip to content

Commit

Permalink
POST request to add deploy key API now correctly sends title and key …
Browse files Browse the repository at this point in the history
…in the request body.
  • Loading branch information
alexkwolfe committed Aug 29, 2011
1 parent e1ff8fc commit 472ae97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/octokit/client/repositories.rb
@@ -1,4 +1,4 @@
module Octokit
,module Octokit
class Client
module Repositories
def search_repositories(q, options={})
Expand Down Expand Up @@ -71,7 +71,7 @@ def deploy_keys(repo, options={})
alias :list_deploy_keys :deploy_keys

def add_deploy_key(repo, title, key, options={})
post("/api/v2/json/repos/key/#{Repository.new(repo)}/add", options)['public_keys']
post("/api/v2/json/repos/key/#{Repository.new(repo)}/add", options.merge(:title => title, :key => key))['public_keys']
end

def remove_deploy_key(repo, id, options={})
Expand Down

0 comments on commit 472ae97

Please sign in to comment.