module Octokit::Client::Issues

def close_issue(repo, number, options = {})

Other tags:
    Example: Close Issue #25 from octokit/octokit.rb -

Other tags:
    See: https://developer.github.com/v3/issues/#edit-an-issue -

Returns:
  • (Sawyer::Resource) - The updated Issue

Options Hash: (**options)
  • :labels (Array) -- List of Label names. Example: ['bug', 'ui', '@high'].
  • :milestone (Integer) -- Milestone number.
  • :assignees (Array) -- User login.
  • :assignee (String) -- User login.

Parameters:
  • options (Hash) -- A customizable set of options.
  • number (Integer) -- Number ID of the issue
  • repo (Integer, String, Repository, Hash) -- A GitHub repository
def close_issue(repo, number, options = {})
  patch "#{Repository.path repo}/issues/#{number}", options.merge({ state: 'closed' })
end