Issue 262: added support for branch protection API

This commit is contained in:
Kohsuke Kawaguchi
2016-06-02 23:40:37 -07:00
parent 3d1bed0f8f
commit 27e855ddbd
5 changed files with 85 additions and 0 deletions

View File

@@ -1103,6 +1103,10 @@ public class GHRepository extends GHObject {
return r;
}
public GHBranch getBranch(String name) throws IOException {
return root.retrieve().to(getApiTailUrl("branches/"+name),GHBranch.class).wrap(this);
}
/**
* @deprecated
* Use {@link #listMilestones(GHIssueState)}