File tree 1 file changed +11
-0
lines changed
src/main/java/org/gitlab4j/api/models
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public class PackageFilter implements Serializable {
20
20
private String packageName ;
21
21
private Boolean includeVersionless ;
22
22
private PackageStatus status ;
23
+ private String packageVersion ;
23
24
24
25
/**
25
26
* Exclude Subgroups.
@@ -96,6 +97,15 @@ public PackageFilter withStatus(PackageStatus status) {
96
97
return (this );
97
98
}
98
99
100
+ /**
101
+ * Filter the returned packages by version.
102
+ * @param packageVersion package packageVersion
103
+ * @return the reference to this ProjectFilter instance
104
+ */
105
+ public PackageFilter withPackageVersion (String packageVersion ) {
106
+ this .packageVersion = packageVersion ;
107
+ return (this );
108
+ }
99
109
/**
100
110
* Get the query params specified by this filter.
101
111
*
@@ -110,6 +120,7 @@ public GitLabApiForm getQueryParams() {
110
120
.withParam ("package_name" , packageName )
111
121
.withParam ("include_versionless" , includeVersionless )
112
122
.withParam ("status" , status )
123
+ .withParam ("package_version" , packageVersion )
113
124
);
114
125
}
115
126
}
You can’t perform that action at this time.
0 commit comments