Skip to content

Commit 9c10f51

Browse files
authored
Add reviewerId to MergeRequestFilter (#1218)
Fixes #1209
1 parent 20fbf1a commit 9c10f51

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

gitlab4j-models/src/main/java/org/gitlab4j/api/models/MergeRequestFilter.java

+15
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class MergeRequestFilter implements Serializable {
5050
private Long authorId;
5151

5252
private Long assigneeId;
53+
private Long reviewerId;
5354
private String myReactionEmoji;
5455
private String sourceBranch;
5556
private String targetBranch;
@@ -278,11 +279,24 @@ public void setAssigneeId(Long assigneeId) {
278279
this.assigneeId = assigneeId;
279280
}
280281

282+
public Long getReviewerId() {
283+
return reviewerId;
284+
}
285+
286+
public void setReviewerId(Long reviewerId) {
287+
this.reviewerId = reviewerId;
288+
}
289+
281290
public MergeRequestFilter withAssigneeId(Long assigneeId) {
282291
this.assigneeId = assigneeId;
283292
return (this);
284293
}
285294

295+
public MergeRequestFilter withReviewerId(Long reviewerId) {
296+
this.reviewerId = reviewerId;
297+
return (this);
298+
}
299+
286300
public String getMyReactionEmoji() {
287301
return myReactionEmoji;
288302
}
@@ -511,6 +525,7 @@ public GitLabForm getQueryParams() {
511525
.withParam("updated_before", updatedBefore)
512526
.withParam("scope", scope)
513527
.withParam("assignee_id", assigneeId)
528+
.withParam("reviewer_id", reviewerId)
514529
.withParam("my_reaction_emoji", myReactionEmoji)
515530
.withParam("source_branch", sourceBranch)
516531
.withParam("target_branch", targetBranch)

0 commit comments

Comments
 (0)