Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

Api filter(search) branches by name

Is it possible, using gihub api v3, get a list of branches in a repository that matches a name (or part of the name), looking for a branch search support?


By looking at the docs I can get the branch list or get info for a single specific branch, but I can't find a search support?




1 Reply
Community Manager
Message 2 of 2

Re: Api filter(search) branches by name

Good question.


If I'm understanding what you're describing correctly, you'll have to get the list of all branches and then do the matching or filtering yourself. There isn't a "search for a branch" feature in the GitHub API.


I hope that helps!