You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hey all,
Using the API and running this query for example...
returns only myfile.json if it exists in the Master branch of the "myrepo" repo. I can't find any information on how to search within another branch.
How can I alter this search to search either a specific branch or the entire repo?
Thanks...
@StuMid the code search API only indexes the main branch so you're correct that you can only use this API with that branch to search file contents.
That said, you can use the src API to fetch files from any branch given that you know the filename.
You can use a branch name where it says "commit" but there is an annoying limitation that the branch name cannot contain a slash. If the branch name contains a slash you'd have to take a 2 step approach and first look up the commit of the branch using the branch API.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.