branch.getProtection()
fails with an exception for ruleset-protected branch
#2062
Labels
branch.getProtection()
fails with an exception for ruleset-protected branch
#2062
Describe the bug
If a branch (
GHBranch
) is protected via rulesets rather than classic (deprecated?) branch protection rules,GHBranch#isProtected()
returnstrue
, butGHBranch#getProtection
desintegrates with the following exception:Most likely,
GHBranch#isProtected()
will be true for both protection methods, so we need a way to tell them apart without conflating two different methods and later calling wrong endpoints.Perhaps a temp solution could be introduced until #1811 is implemented.
The text was updated successfully, but these errors were encountered: