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/milestones.rst at master · matejzero/python-gitlab

Expand file tree

/

milestones.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
75 lines (51 loc) · 1.59 KB
/

milestones.rst

Copy path

File metadata and controls

75 lines (51 loc) · 1.59 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Milestones

Reference

  • v4 API:
    • :class:`gitlab.v4.objects.ProjectMilestone`
    • :class:`gitlab.v4.objects.ProjectMilestoneManager`
    • :attr:`gitlab.v4.objects.Project.milestones`
  • v3 API:
    • :class:`gitlab.v3.objects.ProjectMilestone`
    • :class:`gitlab.v3.objects.ProjectMilestoneManager`
    • :attr:`gitlab.v3.objects.Project.milestones`
    • :attr:`gitlab.Gitlab.project_milestones`
  • GitLab API: https://docs.gitlab.com/ce/api/milestones.html

Examples

List the milestones for a project:

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

You can filter the list using the following parameters:

  • iid: unique ID of the milestone for the project
  • state: either active or closed
.. literalinclude:: milestones.py
   :start-after: # filter
   :end-before: # end filter

Get a single milestone:

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

Create a milestone:

.. literalinclude:: milestones.py
   :start-after: # create
   :end-before: # end create

Edit a milestone:

.. literalinclude:: milestones.py
   :start-after: # update
   :end-before: # end update

Change the state of a milestone (activate / close):

.. literalinclude:: milestones.py
   :start-after: # state
   :end-before: # end state

List the issues related to a milestone:

.. literalinclude:: milestones.py
   :start-after: # issues
   :end-before: # end issues

List the merge requests related to a milestone:

.. literalinclude:: milestones.py
   :start-after: # merge_requests
   :end-before: # end merge_requests
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.