Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 2.69 KB

golab_merge-requests_ls.md

File metadata and controls

46 lines (33 loc) · 2.69 KB

golab merge-requests ls

List merge requests

Synopsis

Get all merge requests the authenticated user has access to. By default it returns only merge requests created by the current user. To get all merge requests, use parameter scope=all.

The state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all). The pagination parameters page and per_page can be used to restrict the list of merge requests.

Note: the changes_count value in the response is a string, not an integer. This is because when an MR has too many changes to display and store, it will be capped at 1,000. In that case, the API will return the string "1000+" for the changes count.

golab merge-requests ls [flags]

Options

      --assignee_id int            (optional) Returns merge requests assigned to the given user id
      --author_id int              (optional) Returns merge requests created by the given user id. Combine with scope=all or scope=assigned-to-me
      --created_after string       (optional) Return merge requests created after the given time (inclusive)
      --created_before string      (optional) Return merge requests created before the given time (inclusive)
  -h, --help                       help for ls
      --labels string              (optional) Return merge requests matching a comma separated list of labels
      --milestone string           (optional) Return merge requests for a specific milestone
      --my_reaction_emoji string   (optional) Return merge requests reacted by the authenticated user by the given emoji (Introduced in GitLab 10.0)
      --order_by string            (optional) Return requests ordered by created_at or updated_at fields. Default is created_at
      --scope string               (optional) Return merge requests for the given scope: created-by-me, assigned-to-me or all. Defaults to created-by-me
      --sort string                (optional) Return requests sorted in asc or desc order. Default is desc
      --state string               (optional) Return all merge requests or just those that are opened, closed, or merged
      --view string                (optional) If simple, returns the iid, URL, title, description, and basic state of merge request

Options inherited from parent commands

      --ca-file string   (optional) provides a .pem file to be used in certificates pool for SSL connection
      --ca-path string   (optional) provides a directory with .pem certificates to be used for SSL connection
      --config string    (optional) golab config file (default is ./.golab.yml and $HOME/.golab.yml)

SEE ALSO