Skip to content
GitmoapAPIBeta
Schema

ContributionsResponse

The contribution heatmap for a principal over an inclusive UTC date range. A pure aggregate — never carries repository identity.

Shape

  • cellsarray of ContributionCellSparse, ascending by date. Only days with activity.
  • current_streakinteger · int64Consecutive active days ending at to.
  • fromstringResolved inclusive range start, YYYY-MM-DD.
  • longest_streakinteger · int64Longest run of consecutive active days within the range.
  • max_per_dayinteger · int64Largest single-day count (frontend color-scale denominator).
  • principal_idstringThe subject user or service account id.
  • principal_typestringuser or service_account.
  • tostringResolved inclusive range end, YYYY-MM-DD.
  • totalinteger · int64Sum of count across all cells in range.

Example

Synthesized example
{
"cells": [
{
"by_type": {
"commits": 85,
"issues": 29,
"mrs": 29,
"releases": 52,
"reviews": 65
},
"count": 3,
"date": "date-f201"
}
],
"current_streak": 33,
"from": "from-146d",
"longest_streak": 69,
"max_per_day": 7,
"principal_id": "311dd204-176e-409b-852d-46d0126b038e",
"principal_type": "principal-type-1e45",
"to": "to-4f72",
"total": 3
}

Graph

Used inside

No schema contains this one.

Used by