class Github::Issues
def create(user_name, repo_name, params={})
]
"Label2"
"Label1",
"labels" => [
"milestone" => 1,
"assignee" => "octocat",
"body" => "I'm having a problem with this.",
"title" => "Found a bug",
github.issues.create
github = Github.new :user => 'user-name', :repo => 'repo-name'
= Examples
:labels - Optional array of strings - Labels to associate with this issue
:milestone - Optional number - Milestone to associate this issue with
:assignee - Optional string - Login for the user that this issue should be assigned to.
:body - Optional string
:title - Required string
= Inputs
Create an issue
def create(user_name, repo_name, params={}) set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! params # _merge_mime_type(:issue, params) filter! VALID_ISSUE_PARAM_NAMES, params assert_required_keys(%w[ title ], params) post_request("/repos/#{user}/#{repo}/issues", params) end