Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add in field to IssueFilter #1172 #1182

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/main/java/org/gitlab4j/api/models/IssueFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public class IssueFilter implements Serializable {
*/
private IssueState state;

/**
* Modify the scope of the search attribute. title, description, or a string joining them with comma. Default is title,description
*/
private List<String> in;

/**
* Comma-separated list of label names, issues must have all labels to be returned. No+Label lists all issues with no labels.
*/
Expand Down Expand Up @@ -157,6 +162,14 @@ public void setState(IssueState state) {
this.state = state;
}

public List<String> getIn() {
return in;
}

public void setIn(List<String> in) {
this.in = in;
}

public List<String> getLabels() {
return labels;
}
Expand Down Expand Up @@ -496,6 +509,7 @@ public GitLabApiForm getQueryParams() {
.withParam("iids", iids)
.withParam("state", state)
.withParam("labels", (labels != null ? String.join(",", labels) : null))
.withParam("in", (in != null ? String.join(",", in) : null))
.withParam("milestone", milestone)
.withParam("scope", scope)
.withParam("author_id", authorId)
Expand Down
Loading