Skip to content

Commit d32780f

Browse files
committed
Add support for Author Username on the Merge Request API
1 parent 05d4eb9 commit d32780f

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class MergeRequestFilter implements Serializable {
4949
*/
5050
private Long authorId;
5151

52+
private String authorUsername;
5253
private Long assigneeId;
5354
private Long reviewerId;
5455
private String myReactionEmoji;
@@ -271,6 +272,19 @@ public MergeRequestFilter withAuthorId(Long authorId) {
271272
return (this);
272273
}
273274

275+
public String getAuthorUsername() {
276+
return authorUsername;
277+
}
278+
279+
public void setAuthorUsername(String authorUsername) {
280+
this.authorUsername = authorUsername;
281+
}
282+
283+
public MergeRequestFilter withAuthorUsername(String authorUsername) {
284+
this.authorUsername = authorUsername;
285+
return (this);
286+
}
287+
274288
public Long getAssigneeId() {
275289
return assigneeId;
276290
}
@@ -524,6 +538,7 @@ public GitLabForm getQueryParams() {
524538
.withParam("updated_after", updatedAfter)
525539
.withParam("updated_before", updatedBefore)
526540
.withParam("scope", scope)
541+
.withParam("author_username", authorUsername)
527542
.withParam("assignee_id", assigneeId)
528543
.withParam("reviewer_id", reviewerId)
529544
.withParam("my_reaction_emoji", myReactionEmoji)

0 commit comments

Comments
 (0)