From 9c10f51cb10ba454443be044d3b5818d6d683222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Tue, 24 Dec 2024 14:51:48 +0100 Subject: [PATCH] Add reviewerId to MergeRequestFilter (#1218) Fixes #1209 --- .../gitlab4j/api/models/MergeRequestFilter.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gitlab4j-models/src/main/java/org/gitlab4j/api/models/MergeRequestFilter.java b/gitlab4j-models/src/main/java/org/gitlab4j/api/models/MergeRequestFilter.java index c3d13fab9..1a2ff17c6 100644 --- a/gitlab4j-models/src/main/java/org/gitlab4j/api/models/MergeRequestFilter.java +++ b/gitlab4j-models/src/main/java/org/gitlab4j/api/models/MergeRequestFilter.java @@ -50,6 +50,7 @@ public class MergeRequestFilter implements Serializable { private Long authorId; private Long assigneeId; + private Long reviewerId; private String myReactionEmoji; private String sourceBranch; private String targetBranch; @@ -278,11 +279,24 @@ public void setAssigneeId(Long assigneeId) { this.assigneeId = assigneeId; } + public Long getReviewerId() { + return reviewerId; + } + + public void setReviewerId(Long reviewerId) { + this.reviewerId = reviewerId; + } + public MergeRequestFilter withAssigneeId(Long assigneeId) { this.assigneeId = assigneeId; return (this); } + public MergeRequestFilter withReviewerId(Long reviewerId) { + this.reviewerId = reviewerId; + return (this); + } + public String getMyReactionEmoji() { return myReactionEmoji; } @@ -511,6 +525,7 @@ public GitLabForm getQueryParams() { .withParam("updated_before", updatedBefore) .withParam("scope", scope) .withParam("assignee_id", assigneeId) + .withParam("reviewer_id", reviewerId) .withParam("my_reaction_emoji", myReactionEmoji) .withParam("source_branch", sourceBranch) .withParam("target_branch", targetBranch)