Skip to main content
Commits > Lines deleted
Tom Williams avatar
Written by Tom Williams
Updated over 2 weeks ago

Dataset: Commits from pull requests

Entity: Commit

Field ID: deletions

Type: Integer

Description: The number of lines of code deleted in the commit.

Source: App

From:

Github (PRs)

deletions

Gitlab (PRs)

deletions

Bitbucket (PRs)

N/A

Why are lines of code not fetched for Bitbucket?
Unlike GitHub and GitLab, Bitbucket does not expose the number of lines of code changed on the commit API. To fetch the lines of code per commit, one must make an additional API call per commit (fetch the diff stats). The same applies to pull requests.
​
We do it for pull requests because the number of additional API calls remains reasonable (several thousand). However, commits could generate many additional API calls (several tens or hundreds of thousands), which would, in turn, contribute to reaching the Bitbucket throttling quota more quickly, potentially hindering data hydration (because the quota gets reached regularly).
​
So for now, the lines of code per commit are not retrieved for Bitbucket. This decision might be revisited later on.

Did this answer your question?