in tools/plugins.py [0:0]
def _get_branches(self, pluginId):
branchList = self.api.get(f"/projects/{pluginId}/branches/")
pluginBranches = []
for b in branchList:
if b["ref"].startswith("refs/heads/"):
ref = b["ref"]
pluginBranches += [ref[len("refs/heads/") :]]
return pluginBranches