Skip to content

GET branch protection returning 404 #24582

Discussion options

You must be logged in to vote

@jopintopaul 

Can you check whether the user is an admin for that repo?  Or is he in a team that has admin access to the repo? Because branch protection is something that is restricted.

In the below example you can see that I can able to get the master branch details but I cannot get the branch protection details since I am not the admin for that repo.

Regards

Parithiban G

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment