You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi team,
I would like to know the size of the bitbucket repo by API or by any means. I've seen the comment of the Atlassian Team and I've attached the screenshot as well.
But I'm not sure I get that. Could you pls elaborate on that?
https://community.atlassian.com/t5/Bitbucket-questions/How-to-find-out-repository-size/qaq-p/631316
Appreciate it if this can be discussed by having a call on google meet or anyother.
Here is the documentation: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D#get
Replace `workspace` and `repo_slug` with the details of your repository.
You can filter for just the size field:
https://api.bitbucket.org/2.0/repositories/atlassian/bbql/?fields=size
{"size": 1911650}
That is the size in bytes. It's about 1.8 MB.
That's a public repository: https://bitbucket.org/atlassian/bbql/src/master/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way to do the same in Bitbucket Server since it is another product an another Api.
https://<bitbuckethost>/rest/api/1.0/projects/<yourproject>/repos/<yourrepo>
doesn't give me the size in the details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.