Skip to content

Add support for querying MRs in GLQL

Himanshu Kapoor requested to merge 491246-glql-mrs into master

What does this MR do and why?

Add support for querying MRs in GLQL

Allow querying MRs in GLQL. This commit adds support for rendering MRs in GLQL, which is built on top of v0.2.0 of GLQL Rust.

Supported fields to query for MRs include: label, created, updated, assignee, author, milestone, group, project, reviewer, approver, merger, state, merged, deployed, draft, environment.

Verified

0d837716

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

image.png

How to set up and validate locally

Feature flag: :glql_integration

Use GLQL to get MRs where you're currently a reviewer:

```glql
display: table
fields: title, assignee, reviewer, labels, state
query: type = MergeRequest and reviewer = currentUser()
limit: 10
```
Edited by Himanshu Kapoor

Merge request reports

Loading