module Octokit::Client::Issues
def reopen_issue(repo, number, options = {})
- Example: Reopen 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 reopen_issue(repo, number, options = {}) patch "#{Repository.path repo}/issues/#{number}", options.merge({ state: 'open' }) end