github icon indicating copy to clipboard operation
github copied to clipboard

Get all protected branches of a repo

Open T0RAT0RA opened this issue 7 years ago • 3 comments

Hi, the listBranches() method doesn't allow to filter protected branches. Is there a workaround to get all protected branches of a repository?

Github API: https://developer.github.com/v3/repos/branches/#list-branches

T0RAT0RA avatar Oct 04 '17 04:10 T0RAT0RA

I implemented what I needed in: https://github.com/github-tools/github/pull/481.

T0RAT0RA avatar Oct 04 '17 19:10 T0RAT0RA

There is a PR for this in #483. Feel free to address the feedback and reopen. If no one gets around to implementing this, I'll probably get to it eventually.

j-rewerts avatar Apr 24 '19 04:04 j-rewerts

http://github.github.com/github-flavored-markdown/

mixhelove33 avatar Oct 20 '20 19:10 mixhelove33