Method: Gitlab::Client::Issues#close_issue

Defined in:
lib/gitlab/client/issues.rb

#close_issue(project, id) ⇒ Gitlab::ObjectifiedHash

Closes an issue.

Examples:

Gitlab.close_issue(3, 42)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of an issue.

Returns:


86
87
88
# File 'lib/gitlab/client/issues.rb', line 86

def close_issue(project, id)
  put("/projects/#{url_encode project}/issues/#{id}", body: { state_event: 'close' })
end