class Github::Issues
def create(*args)
]
"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 are silently dropped otherwise.
Only users with push access can set labels for new issues.
:labels - Optional array of strings - Labels to associate with this issue
The milestone is silently dropped otherwise.
Only users with push access can set the milestone for new issues.
:milestone - Optional number - Milestone to associate this issue with.
The assignee is silently dropped otherwise.
Only users with push access can set the assignee for new issues.
: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(*args) arguments(args, :required => [:user, :repo]) do sift VALID_ISSUE_PARAM_NAMES assert_required %w[ title ] end post_request("/repos/#{user}/#{repo}/issues", arguments.params) end