module Github::Issues::Milestones
def create_milestone(user_name=nil, repo_name=nil, params={})
:due_on => "Time"
:description => "String",
:state => "open or closed",
@github.issues.create_milestone :title => 'hello-world',
@github = Github.new :user => 'user-name', :repo => 'repo-name'
= Examples
:due_on - Optional string - ISO 8601 time
:description - Optional string
:state - Optional string - open or closed
:title - Required string
= Inputs
Create a milestone
def create_milestone(user_name=nil, repo_name=nil, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _normalize_params_keys(params) _filter_params_keys(VALID_MILESTONE_INPUTS, params) _validate_inputs(%w[ title ], params) post("/repos/#{user}/#{repo}/milestones", params) end