Api filter(search) branches by name #24512
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
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! |
Beta Was this translation helpful? Give feedback.
-
Is this the same behavior still? |
Beta Was this translation helpful? Give feedback.
-
That’s correct. There is not a “search for a branch” feature in the GitHub API. |
Beta Was this translation helpful? Give feedback.
-
Hi Team, Is it planned for future. Gitlab has regex support in list branch API to support this out of the box. https://docs.gitlab.com/ee/api/branches.html Are we tracking this issue somewhere or it's not planned to be picked up anytime soon. |
Beta Was this translation helpful? Give feedback.
That’s correct. There is not a “search for a branch” feature in the GitHub API.