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, String)

    The ID or name of a project.

  • body (String)

    The body of a note.

Returns:

[View source]

136
137
138
# File 'lib/gitlab/client/notes.rb', line 136

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