feat(commands/api): add a reviewer filter to the mr list command
Created by: huegelcesar
Description
Currently, it's not possible to filter the merge requests list by its reviewers.
So, this MR adds a new optional parameter (--reviewer
) to the mr list
command to enable filtering merge requests by its reviewers.
Note: this implementation uses the same flow of assignee filtering and applies an OR operation between Assignee and Reviewer, so it does not break any previous behavior.
Related Issue Delivers #680 (closed)
How Has This Been Tested? Locally tried to list merge requests for different combinations of parameters, on a self-hosted instance and everything worked. Some tested cases:
mr list --reviewer=@me
mr list --reviewer=@me,OtherUserName
mr list --reviewer=@me --assignee=OtherUserName
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)