Skip to content

[Extension Feature Request] Extend Gitlab MR request query with scope=all parameter #387

@sattellite

Description

@sattellite

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:

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.

Metadata

Metadata

Assignees

Labels

extensionIssues related to one of the extensions in the Storefeature requestNew feature or improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions