class Github::PullRequests
def create(*args)
"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(*args) arguments(args, :required => [:user, :repo]) do sift VALID_REQUEST_PARAM_NAMES end post_request("/repos/#{user}/#{repo}/pulls", arguments.params) end