module Gitlab::Client::Todos

def mark_all_todos_as_done

Returns:
  • (void) - This API call returns an empty response body.
def mark_all_todos_as_done
  post('/todos/mark_as_done')
end

def mark_todo_as_done(id)

Returns:
  • (Gitlab::ObjectifiedHash) -

Parameters:
  • id (Integer) -- The ID of the todo.
def mark_todo_as_done(id)
  post("/todos/#{id}/mark_as_done")
end

def todos(options = {})

Returns:
  • (Array) -

Options Hash: (**options)
  • :type (Integer) -- The type of a todo. Can be either `Issue` or `MergeRequest`
  • :state (Integer) -- The state of the todo. Can be either `pending` or `done`
  • :project_id (Integer) -- The ID of a project
  • :author_id (Integer) -- The ID of an author
  • :action (Integer) -- The action to be filtered. Can be `assigned`, `mentioned`, `build_failed`, `marked`, or `approval_required`.

Parameters:
  • options (Hash) -- A customizable set of options.
def todos(options = {})
  get('/todos', query: options)
end