Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
bff0b319
Unverified
Commit
bff0b319
authored
Aug 07, 2024
by
valentinmanea
Committed by
GitHub
Aug 07, 2024
Browse files
Add packageVersion filter (#1139)
Co-authored-by:
Valentin Manea
<
valentin.manea@aviloo.com
>
parent
9378b786
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/PackageFilter.java
View file @
bff0b319
...
@@ -20,6 +20,7 @@ public class PackageFilter implements Serializable {
...
@@ -20,6 +20,7 @@ public class PackageFilter implements Serializable {
private
String
packageName
;
private
String
packageName
;
private
Boolean
includeVersionless
;
private
Boolean
includeVersionless
;
private
PackageStatus
status
;
private
PackageStatus
status
;
private
String
packageVersion
;
/**
/**
* Exclude Subgroups.
* Exclude Subgroups.
...
@@ -96,6 +97,15 @@ public class PackageFilter implements Serializable {
...
@@ -96,6 +97,15 @@ public class PackageFilter implements Serializable {
return
(
this
);
return
(
this
);
}
}
/**
* Filter the returned packages by version.
* @param packageVersion package packageVersion
* @return the reference to this ProjectFilter instance
*/
public
PackageFilter
withPackageVersion
(
String
packageVersion
)
{
this
.
packageVersion
=
packageVersion
;
return
(
this
);
}
/**
/**
* Get the query params specified by this filter.
* Get the query params specified by this filter.
*
*
...
@@ -110,6 +120,7 @@ public class PackageFilter implements Serializable {
...
@@ -110,6 +120,7 @@ public class PackageFilter implements Serializable {
.
withParam
(
"package_name"
,
packageName
)
.
withParam
(
"package_name"
,
packageName
)
.
withParam
(
"include_versionless"
,
includeVersionless
)
.
withParam
(
"include_versionless"
,
includeVersionless
)
.
withParam
(
"status"
,
status
)
.
withParam
(
"status"
,
status
)
.
withParam
(
"package_version"
,
packageVersion
)
);
);
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment