Method: Gitlab::Client::Issues#subscribe_to_issue

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

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

Subscribe to an issue.

Examples:

Gitlab.subscribe_to_issue(3, 42)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of an issue.

Returns:


110
111
112
# File 'lib/gitlab/client/issues.rb', line 110

def subscribe_to_issue(project, id)
  post("/projects/#{url_encode project}/issues/#{id}/subscribe")
end