Skip to content

merge request can have state locked #2005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/gl_objects/merge_requests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ List MRs for a project::

You can filter and sort the returned list with the following parameters:

* ``state``: state of the MR. It can be one of ``all``, ``merged``, ``opened``
or ``closed``
* ``state``: state of the MR. It can be one of ``all``, ``merged``, ``opened``,
``closed`` or ``locked``
* ``order_by``: sort by ``created_at`` or ``updated_at``
* ``sort``: sort order (``asc`` or ``desc``)

You can find a full updated list of parameters here:
https://docs.gitlab.com/ee/api/merge_requests.html#list-merge-requests

For example::

mrs = project.mergerequests.list(state='merged', order_by='updated_at')
Expand Down