Method: Gitlab::Client::Notes#create_note

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

#create_note(project, body) ⇒ Gitlab::ObjectifiedHash

Creates a new wall note.

Examples:

Gitlab.create_note(5, 'This is a wall note!')

Parameters:

  • project (Integer)

    The ID of a project.

  • body (String)

    The body of a note.

Returns:



92
93
94
# File 'lib/gitlab/client/notes.rb', line 92

def create_note(project, body)
  post("/projects/#{project}/notes", body: { body: body })
end