List all branches from Google Cloud Source Repository

222 views Asked by At

I'm a newbie, as i want to fetch/list all the branches created in repository of Google Cloud Source. As AWS has a list-branches functionality but GCP doesn't. Even we have written a function in python but it is returning empty list.

def get_branch_list(self, project_name: str):
    branch_list = list()
    branch_list = response["branches"]
    return branch_list

As AWS has self.client_codecommit.list_branches() function. But GCP is not having such function. Please help guys.

1

There are 1 answers

1
Sathi Aiswarya On

Seems, there is no List Branch endpoint available in the Cloud Source Repository API

At issue tracker a feature request has been submitted for this. which is still open and where further progress can be tracked. There is already a public concern about it, so it is a known problem. You can add your concerns and follow that issue for future updates.