GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-gitlab/docs/gl_objects/todos.rst at master · matejzero/python-gitlab

Expand file tree

/

todos.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
48 lines (34 loc) · 994 Bytes
/

todos.rst

Copy path

File metadata and controls

48 lines (34 loc) · 994 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Todos

Use :class:`~gitlab.objects.Todo` objects to manipulate todos. The :attr:`gitlab.Gitlab.todos` manager object provides helper functions.

Examples

List active todos:

.. literalinclude:: todos.py
   :start-after: # list
   :end-before: # end list

You can filter the list using the following parameters:

  • action: can be assigned, mentioned, build_failed, marked, or approval_required
  • author_id
  • project_id
  • state: can be pending or done
  • type: can be Issue or MergeRequest

For example:

.. literalinclude:: todos.py
   :start-after: # filter
   :end-before: # end filter

Get a single todo:

.. literalinclude:: todos.py
   :start-after: # get
   :end-before: # end get

Mark a todo as done:

.. literalinclude:: todos.py
   :start-after: # delete
   :end-before: # end delete

Mark all the todos as done:

.. literalinclude:: todos.py
   :start-after: # all_delete
   :end-before: # end all_delete
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.