File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
main/java/org/gitlab4j/api/models
test/resources/org/gitlab4j/api Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public class ProtectedBranch {
1313 private List <BranchAccessLevel > mergeAccessLevels ;
1414 private List <BranchAccessLevel > unprotectAccessLevels ;
1515 private Boolean codeOwnerApprovalRequired ;
16+ private Boolean allowForcePush ;
1617
1718 public Long getId () {
1819 return id ;
@@ -86,6 +87,19 @@ public ProtectedBranch withCodeOwnerApprovalRequired(Boolean codeOwnerApprovalRe
8687 return this ;
8788 }
8889
90+ public Boolean getAllowForcePush () {
91+ return allowForcePush ;
92+ }
93+
94+ public void setAllowForcePush (Boolean allowForcePush ) {
95+ this .allowForcePush = allowForcePush ;
96+ }
97+
98+ public ProtectedBranch withAllowForcePush (Boolean allowForcePush ) {
99+ this .allowForcePush = allowForcePush ;
100+ return this ;
101+ }
102+
89103 @ Override
90104 public String toString () {
91105 return (JacksonJson .toJsonString (this ));
Original file line number Diff line number Diff line change 2020 {
2121 "group_id" : 2
2222 }
23- ]
23+ ],
24+ "allow_force_push" : false ,
25+ "code_owner_approval_required" : false
2426}
You can’t perform that action at this time.
0 commit comments