Skip to content

Commit eb41bb6

Browse files
Add protectedBranches to ApprovalRule
This is returned by GitLab and simply not mapped yet. Tested with Gitlab 18.0.2
1 parent 39cbdc7 commit eb41bb6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gitlab4j-models/src/main/java/org/gitlab4j/api/models/ApprovalRule.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class ApprovalRule implements Serializable {
1919
private Boolean containsHiddenGroups;
2020
private List<User> approvedBy;
2121
private Boolean approved;
22+
private List<ProtectedBranch> protectedBranches;
2223

2324
public Long getId() {
2425
return id;
@@ -108,6 +109,14 @@ public void setApproved(Boolean approved) {
108109
this.approved = approved;
109110
}
110111

112+
public List<ProtectedBranch> getProtectedBranches() {
113+
return protectedBranches;
114+
}
115+
116+
public void setProtectedBranches(List<ProtectedBranch> protectedBranches) {
117+
this.protectedBranches = protectedBranches;
118+
}
119+
111120
@Override
112121
public String toString() {
113122
return (JacksonJson.toJsonString(this));

0 commit comments

Comments
 (0)