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 {
13
13
private List <BranchAccessLevel > mergeAccessLevels ;
14
14
private List <BranchAccessLevel > unprotectAccessLevels ;
15
15
private Boolean codeOwnerApprovalRequired ;
16
+ private Boolean allowForcePush ;
16
17
17
18
public Long getId () {
18
19
return id ;
@@ -86,6 +87,19 @@ public ProtectedBranch withCodeOwnerApprovalRequired(Boolean codeOwnerApprovalRe
86
87
return this ;
87
88
}
88
89
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
+
89
103
@ Override
90
104
public String toString () {
91
105
return (JacksonJson .toJsonString (this ));
Original file line number Diff line number Diff line change 20
20
{
21
21
"group_id" : 2
22
22
}
23
- ]
23
+ ],
24
+ "allow_force_push" : false ,
25
+ "code_owner_approval_required" : false
24
26
}
You can’t perform that action at this time.
0 commit comments