-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
Extension – Gitlab
Authors: @tonka3000 @dai-shi
Describe the feature and the current behavior/state.
I cannot get all merge requests with review assigned to me at all. This is feature of Gitlab API described at documentation. By default API request returns only merge request created by the current user.
Info from Gitlab API documentation:
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.
To fix this issue all you have to add one parameter to query in API request scope=all.
Place to add scope parameter in component reviews.tsx:
extensions/extensions/gitlab/src/components/reviews.tsx
Lines 74 to 79 in 1a043b6
| const glMRs = await gitlab.getMergeRequests({ | |
| state: "opened", | |
| reviewer_id: user.id, | |
| search: query || "", | |
| in: "title", | |
| }); |
Who will benefit with this feature?
This fix will allow get all merge request assigned to current user.