class Github::PullRequests

def create(user_name, repo_name, params={})


"base" => "master"
"head" => "octocat:new-feature",
"issue" => "5",
@github.pull_requests.create 'user-name', 'repo-name',

alternatively

"base" => "master"
"head" => "octocat:new-feature",
"body" => "Please pull this in!",
"title" => "Amazing new feature",
github.pull_requests.create 'user-name', 'repo-name',
github = Github.new :oauth_token => '...'
= Examples

* issue - Required number - Issue number in this repository to turn into a Pull Request.
an Issue number instead of title and body.
You can also create a Pull Request from an existing Issue by passing
= Alternative Input
Typically you would namespace head with a user like this: username:branch.
note: head and base can be either a sha or a branch name.
* :head - Required string - The branch where your changes are implemented.
* :base - Required string - The branch you want your changes pulled into.
* :body - Optional string
* :title - Required string
= Inputs

Create a pull request
def create(user_name, repo_name, params={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo
  normalize! params
  # _merge_mime_type(:pull_request, params)
  filter! VALID_REQUEST_PARAM_NAMES, params
  post_request("/repos/#{user}/#{repo}/pulls", params)
end