33import com .fasterxml .jackson .annotation .JsonIgnore ;
44import org .gitlab4j .api .Constants .PipelineOrderBy ;
55import org .gitlab4j .api .Constants .PipelineScope ;
6+ import org .gitlab4j .api .Constants .PipelineSource ;
67import org .gitlab4j .api .Constants .SortOrder ;
78import org .gitlab4j .api .GitLabApiForm ;
89import org .gitlab4j .api .utils .JacksonJson ;
@@ -22,6 +23,9 @@ public class PipelineFilter implements Serializable {
2223 /** {@link org.gitlab4j.api.Constants.PipelineScope} The status of pipelines, one of: running, pending, success, failed, canceled, skipped, created */
2324 private PipelineStatus status ;
2425
26+ /** {@link org.gitlab4j.api.Constants.PipelineSource} The source of pipelines */
27+ private PipelineSource source ;
28+
2529 /** The ref of pipelines. */
2630 private String ref ;
2731
@@ -62,6 +66,10 @@ public void setStatus(PipelineStatus status) {
6266 this .status = status ;
6367 }
6468
69+ public void setSource (PipelineSource source ) {
70+ this .source = source ;
71+ }
72+
6573 public void setRef (String ref ) {
6674 this .ref = ref ;
6775 }
@@ -108,6 +116,11 @@ public PipelineFilter withStatus(PipelineStatus status) {
108116 return this ;
109117 }
110118
119+ public PipelineFilter withSource (PipelineSource source ) {
120+ this .source = source ;
121+ return this ;
122+ }
123+
111124 public PipelineFilter withRef (String ref ) {
112125 this .ref = ref ;
113126 return this ;
@@ -158,6 +171,7 @@ public GitLabApiForm getQueryParams() {
158171 return (new GitLabApiForm ()
159172 .withParam ("scope" , scope )
160173 .withParam ("status" , status )
174+ .withParam ("source" , source )
161175 .withParam ("ref" , ref )
162176 .withParam ("sha" , sha )
163177 .withParam ("yaml_errors" , yamlErrors )
0 commit comments