Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 2

GITHUB API V3 to list active branches only

I am interested to retrieve only active branches of a repository so wondering if there is any param availablein branches api to exclude stale branches

 

api/v3/repos/<user>/<repo>/branches

 

 

 

 

 

1 Reply
Community Manager
Message 2 of 2

Re: GITHUB API V3 to list active branches only

No, there isn't a filter for "stale" branches via the list branches API. You'd have to list all branches and then do the filtering yourself.

 

Let us know if you have more questions.