github-tools / github-tools/github

Get all protected branches of a repo

Open
#480 3 comments 0 reactions 0 assignees View on GitHub
easy pull request enhancement PRs welcome
Dominant language
JavaScript
Stars
3.8k
Forks
809
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.