Method: Gitlab::Client::Todos#mark_todo_as_done

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

#mark_todo_as_done(id) ⇒ Gitlab::ObjectifiedHash

Marks a single pending todo for the current user as done.

Examples:

Gitlab.mark_todo_as_done(42)

Parameters:

  • id (Integer)

    The ID of the todo.

Returns:

[View source]

32
33
34
# File 'lib/gitlab/client/todos.rb', line 32

def mark_todo_as_done(id)
  post("/todos/#{id}/mark_as_done")
end