3
3
import com .fasterxml .jackson .annotation .JsonIgnore ;
4
4
import org .gitlab4j .api .Constants .PipelineOrderBy ;
5
5
import org .gitlab4j .api .Constants .PipelineScope ;
6
+ import org .gitlab4j .api .Constants .PipelineSource ;
6
7
import org .gitlab4j .api .Constants .SortOrder ;
7
8
import org .gitlab4j .api .GitLabApiForm ;
8
9
import org .gitlab4j .api .utils .JacksonJson ;
@@ -22,6 +23,9 @@ public class PipelineFilter implements Serializable {
22
23
/** {@link org.gitlab4j.api.Constants.PipelineScope} The status of pipelines, one of: running, pending, success, failed, canceled, skipped, created */
23
24
private PipelineStatus status ;
24
25
26
+ /** {@link org.gitlab4j.api.Constants.PipelineSource} The source of pipelines */
27
+ private PipelineSource source ;
28
+
25
29
/** The ref of pipelines. */
26
30
private String ref ;
27
31
@@ -62,6 +66,10 @@ public void setStatus(PipelineStatus status) {
62
66
this .status = status ;
63
67
}
64
68
69
+ public void setSource (PipelineSource source ) {
70
+ this .source = source ;
71
+ }
72
+
65
73
public void setRef (String ref ) {
66
74
this .ref = ref ;
67
75
}
@@ -108,6 +116,11 @@ public PipelineFilter withStatus(PipelineStatus status) {
108
116
return this ;
109
117
}
110
118
119
+ public PipelineFilter withSource (PipelineSource source ) {
120
+ this .source = source ;
121
+ return this ;
122
+ }
123
+
111
124
public PipelineFilter withRef (String ref ) {
112
125
this .ref = ref ;
113
126
return this ;
@@ -158,6 +171,7 @@ public GitLabApiForm getQueryParams() {
158
171
return (new GitLabApiForm ()
159
172
.withParam ("scope" , scope )
160
173
.withParam ("status" , status )
174
+ .withParam ("source" , source )
161
175
.withParam ("ref" , ref )
162
176
.withParam ("sha" , sha )
163
177
.withParam ("yaml_errors" , yamlErrors )
0 commit comments