Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch the list of Python Repos in Bitbucket using API Search Query String?

krishna murali
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2024

Hi Team,

We are from SonarQube Code Quality Team and we are using the below Bitbucket version.

Atlassian Bitbcuket v8.9.7 

 

As part of the Python Code Coverage, we are trying to identify only the list of Python Repos in our Bitbucket Repository using an API Search String Query which will list out only the .py repos.

 

Thanks,

Murali Sulam

1 answer

0 votes
Aman Shrivastava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 31, 2024 edited

Hi Murali,

Welcome to the Atlassian community.

You may try the following query to list the repositories whose name ending with .py. Although this way of querying is not listed in the doc, it may work in your scenario. 

curl -u <Admin-User> --request GET --url 'http://{baseurl}/rest/api/latest/repos?limit=1000&name=%.py' --header 'Accept: application/json'

 
Regards,
Aman

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, out of office, loom, confluence, async collaboration, meeting recaps, remote teamwork, team alignment, knowledge sharing, AI-powered notes, productivity tools, workforce continuity, teamwork collection

Put your meeting notes on autopilot with Loom + Confluence

AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.

Learn more
AUG Leaders

Atlassian Community Events