Skip to content

Commit

Permalink
Add reviewerId to MergeRequestFilter (#1218)
Browse files Browse the repository at this point in the history
Fixes #1209
  • Loading branch information
jmini authored Dec 24, 2024
1 parent 20fbf1a commit 9c10f51
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9c10f51

Please sign in to comment.