Method: Gitlab::Client::Notes#create_issue_note

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

#create_issue_note(project, issue, body) ⇒ Gitlab::ObjectifiedHash

Creates a new issue note.

Examples:

Gitlab.create_issue_note(6, 1, 'Adding a note to my issue.')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • issue (Integer)

    The ID of an issue.

  • body (String)

    The body of a note.

Returns:


149
150
151
# File 'lib/gitlab/client/notes.rb', line 149

def create_issue_note(project, issue, body)
  post("/projects/#{url_encode project}/issues/#{issue}/notes", body: { body: body })
end