Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is it possible to retrieve a list of all repositorys and their clone urls of a project? #151

Open
philiplorenz-code opened this issue Feb 21, 2024 · 1 comment

Comments

@philiplorenz-code
Copy link

I did not find any option to get a list of repositories and their clone urls by projectname or project-id. The api does support this kind of request: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-7.2&tabs=HTTP

Do you have any exmaple for this kind of request?

@gsaraf
Copy link

gsaraf commented Feb 21, 2024

I think this is available via the method GetRepositories on the git client (git.NewClient). Implemented here: https://github.com/microsoft/azure-devops-go-api/blob/dev/azuredevops/git/client.go#L4658

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants