Commit 10d92079 authored by Jeremie Bresson's avatar Jeremie Bresson
Browse files

Merge remote-tracking branch 'origin/main' into 6.x

parents 2c43036f 9aae1d86
...@@ -13,6 +13,7 @@ public class ProtectedBranch { ...@@ -13,6 +13,7 @@ public class ProtectedBranch {
private List<BranchAccessLevel> mergeAccessLevels; private List<BranchAccessLevel> mergeAccessLevels;
private List<BranchAccessLevel> unprotectAccessLevels; private List<BranchAccessLevel> unprotectAccessLevels;
private Boolean codeOwnerApprovalRequired; private Boolean codeOwnerApprovalRequired;
private Boolean allowForcePush;
public Long getId() { public Long getId() {
return id; return id;
...@@ -86,6 +87,19 @@ public class ProtectedBranch { ...@@ -86,6 +87,19 @@ public class ProtectedBranch {
return this; return this;
} }
public Boolean getAllowForcePush() {
return allowForcePush;
}
public void setAllowForcePush(Boolean allowForcePush) {
this.allowForcePush = allowForcePush;
}
public ProtectedBranch withAllowForcePush(Boolean allowForcePush) {
this.allowForcePush = allowForcePush;
return this;
}
@Override @Override
public String toString() { public String toString() {
return (JacksonJson.toJsonString(this)); return (JacksonJson.toJsonString(this));
......
...@@ -20,5 +20,7 @@ ...@@ -20,5 +20,7 @@
{ {
"group_id": 2 "group_id": 2
} }
] ],
"allow_force_push": false,
"code_owner_approval_required": false
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment