Method: Gitlab::Client::Todos#todos

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

#todos(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Gets a list of todos.

Examples:

Gitlab.todos
Gitlab.todos({ action: 'assigned' })
Gitlab.todos({ state: 'pending' })

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :action (Integer)

    The action to be filtered. Can be ‘assigned`, `mentioned`, `build_failed`, `marked`, or `approval_required`.

  • :author_id (Integer)

    The ID of an author

  • :project_id (Integer)

    The ID of a project

  • :state (Integer)

    The state of the todo. Can be either ‘pending` or `done`

  • :type (Integer)

    The type of a todo. Can be either ‘Issue` or `MergeRequest`

Returns:

[View source]

21
22
23
# File 'lib/gitlab/client/todos.rb', line 21

def todos(options = {})
  get('/todos', query: options)
end