- add support for signed commits

- add support for required number of reviews
This commit is contained in:
Jae Gangemi
2018-05-27 15:33:58 -06:00
parent d61697a152
commit 1145941d11
5 changed files with 114 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ public class GHBranch {
@Preview @Deprecated
public GHBranchProtection getProtection() throws IOException {
return root.retrieve().withPreview(LOKI).to(protection_url, GHBranchProtection.class);
return root.retrieve().withPreview(LOKI).to(protection_url, GHBranchProtection.class).wrap(this);
}
/**
@@ -82,7 +82,7 @@ public class GHBranch {
*/
@Preview @Deprecated
public void disableProtection() throws IOException {
new Requester(root).method("DELETE").withPreview(LOKI).to(protection_url);
new Requester(root).method("DELETE").to(protection_url);
}
/**