Documentation
¶
Overview ¶
Package calendar owns the M4 "calendar" plugin. It collapses the per-day contribution data already populated by base.runIndepth (Computed.ContributionCalendar) into a per-year × per-month histogram.
Contracts: specs/004-m4-github-plugins/contracts/plugin-p2-graphql.md §1 Data model: specs/004-m4-github-plugins/data-model.md E-020
Index ¶
Constants ¶
const Name = "calendar"
Name is the canonical plugin slug.
Variables ¶
var Plugin plugins.Plugin = &calendarPlugin{}
Plugin is the singleton registered with the global plugin registry.
Functions ¶
Types ¶
type Result ¶
type Result struct {
Skipped bool `json:"skipped,omitempty"`
SkippedReason string `json:"-"`
Years []YearCalendar `json:"years"`
Limit int `json:"limit"`
}
Result is the JSON payload published under data.Plugins["calendar"].
type YearCalendar ¶
type YearCalendar struct {
Year int `json:"year"`
Total int `json:"total"`
Months [12]int `json:"months"`
}
YearCalendar carries one calendar year's contribution histogram.