Skip to content

Commit fc49ed1

Browse files
committed
Add NotesFilterType filter in "workItemsByReference"
1 parent 1d52706 commit fc49ed1

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

quarkus-graphql-client/src/main/java/gitlab/api/WorkitemClientApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import gitlab.model.Group;
1313
import gitlab.model.Namespace;
14+
import gitlab.model.NotesFilterType;
1415
import gitlab.model.Project;
1516
import gitlab.model.WorkItem;
1617
import gitlab.model.WorkItemAddLinkedItemsInput;
@@ -63,7 +64,7 @@ public interface WorkitemClientApi {
6364
*/
6465
@Deprecated
6566
@Query("workItemsByReference")
66-
WorkItemConnection workItemsByReference(@Name("contextNamespacePath") @Id String contextNamespacePath, @Name("refs") @NonNull List<@NonNull String> refs);
67+
WorkItemConnection workItemsByReference(@Name("contextNamespacePath") @Id String contextNamespacePath, @Name("refs") @NonNull List<@NonNull String> refs, @Name("filter") @NestedParameter("nodes.widgets.discussions") NotesFilterType filter);
6768

6869
/**
6970
* Add linked items to the work item. Introduced in GitLab 16.3: **Status**: Experiment.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package gitlab.model;
2+
3+
import org.eclipse.microprofile.graphql.Name;
4+
5+
/**
6+
* Work item notes collection type.
7+
*/
8+
@Name("NotesFilterType")
9+
public enum NotesFilterType {
10+
11+
/**
12+
* Show all activity
13+
*/
14+
ALL_NOTES,
15+
/**
16+
* Show comments only
17+
*/
18+
ONLY_COMMENTS,
19+
/**
20+
* Show history only
21+
*/
22+
ONLY_ACTIVITY;
23+
24+
}

0 commit comments

Comments
 (0)