The number of commits created.
This metric is calculated by counting the number of commits in the given data range.
Data Sources Required
This metric relies on commits collected from GitHub, GitLab or BitBucket.
Transformation Rules Required
N/A
SQL Queries
If you want to see the monthly trend, run the following SQL
with _commits as(
SELECT
DATE_ADD(date(authored_date), INTERVAL -DAY(date(authored_date))+1 DAY) as time,
count(*) as commit_count
FROM commits
WHERE
message not like '%Merge%'
and $__timeFilter(authored_date)
group by 1
)
SELECT
date_format(time,'%M %Y') as month,
commit_count as "Commit Count"
FROM _commits
ORDER BY time