Hello Rahul,
If you’re looking to locate the repos within Bitbucket within the database the good news is there is an article to do this. The article does not cover how to match to branches, however. But the article does show how to query the repos within Bitbucket. You may find this article at Identifying a Repository on the Bitbucket Server.
SELECT name, id FROM <DataBase>.repository;
Regards,
Stephen Sifers
Hi Stephen,
Thanks for query, I am going to rephrase the question.
SQL query where I can list all the repositories with their active branches name. I knew about the repo name though.
Thank You
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The database does not store any information that would be helpful for combining Repo and Branch data. With this said, the alternative to get further information on this would be to use the REST API to access the data. A concept of this idea would be implemented with the following bb-project-repo-listing while including the branches from the REST API (/REST/API/1.0/PROJECTS/{PROJECTKEY}/REPOS/{REPOSITORYSLUG}/BRANCHES?BASE&DETAILS&FILTERTEXT&ORDERBY)
I hope this proves helpful and you’re able to get the combined data you need.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.