[go: up one dir, main page]

Skip to content

Add non_archived flag to /merge_requests API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to Solve

The /merge_requests API currently returns all merge requests, even when the merge requests are in a read-only project that has been archived. This makes it challenging to see merge requests that you actually need to do anything with via the API since archived projects likely don't need any action.

Proposal

In the /merge_requests API a new field should be added which is non_archived (to match the currently available field in the groups API). This field should be Defaulted to false so as not to introduce a breaking change.

Old Description

non_archived is an optional parameter to the group-based MR API

this does not appear to be supported for other MR APIs (scoped by project or user)

first observed this when querying for open merge requests and finding MRs that are in archived projects. these are particularly annoying because you can't close them without unarchiving the project.

adding non_archived to any MR-based operation (and having it default to true) would be a better experience. it would also be more consistent with the issues API which seems to honor this field in multiple APIs

Edited by 🤖 GitLab Bot 🤖