Unverified Commit 9aae1d86 authored by Christoph Brill's avatar Christoph Brill Committed by GitHub
Browse files

Add allow_force_push in ProtectedBranch (#1051)



---------
Co-authored-by: default avatarJeremie Bresson <jeremie.bresson@unblu.com>
parent 30f18d6c
......@@ -13,6 +13,7 @@ public class ProtectedBranch {
private List<BranchAccessLevel> mergeAccessLevels;
private List<BranchAccessLevel> unprotectAccessLevels;
private Boolean codeOwnerApprovalRequired;
private Boolean allowForcePush;
public Long getId() {
return id;
......@@ -86,6 +87,19 @@ public class ProtectedBranch {
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
public String toString() {
return (JacksonJson.toJsonString(this));
......
......@@ -20,5 +20,7 @@
{
"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