Skip to content

Allowing filtering merge requests by multiple review states

Phil Hughes requested to merge ph/filterByMultipleReviewerStates into master

What does this MR do and why?

This allows us to get all merge requests that a reviewer has left general feedback, and requested changes.

Note this query is part of an experimental feature and may be removed/changed in future iterations.

The GraphQL request the frontend will do is something like:

query {
  currentUser {
    reviewRequestedMergeRequests(reviewStates: [REQUESTED_CHANGES, REVIEWED], state: opened, first: 5) {
      nodes {
        id
        reference
      }
    }
  }
}

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports