Dynamic Github repo branches as filter

I’m using the Github default template. Anyone knows how to dynamically pull all branches per repository? I tried different variable types, queries, regex, etc. but no clue how to pull all branches. Only have static branch as values which can be defined in the variable.

I would use GitHub API with infinity

repos/{owner}/{repo}/branches

If you wanted to still use the github data source for most of the work (and the dashboard) you could update the branch variable to be the Query type rather than a hardcoded list - then use the same approach as @yosiasz mentioned to populate this list.

Thank you guys for the response, but in my case, I used I just used a query variable with the JSON api. Thanks.