Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket: Total lines of code on server

Ernest Kim
Contributor
April 1, 2019

Is there a way to get the total number of lines of code that my Bitbucket server is storing (all projects and repos)? Thanks.

1 answer

0 votes
Uladzislava Kastsitsyna _Stiltsoft_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 30, 2024

Hi,

You can achieve this using Awesome Graphs for Bitbucket. Our app provides REST API that can help you export raw data about commits, lines of code, and pull requests.

Here is an example of a curl command to retrieve the number of commits and lines of code added and deleted in all projects and repositories for the specified period:

curl -X GET -u username:password "https://%bitbucket-host%/rest/awesome-graphs-api/latest/commits/statistics?sinceDate=2020-01-01&untilDate=2020-02-01"

Let me know if you have any questions!

Best regards,
Vlada 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events