Skip to content

Commit

Permalink
Add name attribute to Pipeline class (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-rwe authored Oct 31, 2023
1 parent 7646876 commit 4841ece
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/java/org/gitlab4j/api/models/Pipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class Pipeline {
private Float queuedDuration;
private String webUrl;
private DetailedStatus detailedStatus;
private String name;

public Long getId() {
return id;
Expand Down Expand Up @@ -277,6 +278,14 @@ public void setDetailedStatus(DetailedStatus detailedStatus) {
this.detailedStatus = detailedStatus;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

@Override
public String toString() {
return (JacksonJson.toJsonString(this));
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/org/gitlab4j/api/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"favicon": "/assets/ci_favicons/favicon_status_pending-5bdf338420e5221ca24353b6bff1c9367189588750632e9a871b7af09ff6a2ae.png"
},
"coverage": "30.0",
"web_url": "https://example.com/foo/bar/pipelines/46"
"web_url": "https://example.com/foo/bar/pipelines/46",
"name": "Custom pipeline name"
}

0 comments on commit 4841ece

Please sign in to comment.