Documentation
¶
Overview ¶
Package contributors owns the M4 "contributors" plugin. Per the contract this plugin targets the repository-template account kind, which M4 does not yet support (M7 territory). In M4 it always returns Skipped=true with an explanatory reason.
Contracts: specs/004-m4-github-plugins/contracts/plugin-p2-graphql.md §6 Data model: specs/004-m4-github-plugins/data-model.md E-027
Index ¶
Constants ¶
const Name = "contributors"
Name is the canonical plugin slug.
Variables ¶
var Plugin plugins.Plugin = &contributorsPlugin{}
Plugin is the singleton registered with the global plugin registry.
Functions ¶
Types ¶
type Contributor ¶
type Contributor struct {
Login string `json:"login"`
AvatarURL string `json:"avatarUrl"`
Commits int `json:"commits"`
Additions int `json:"additions"`
Deletions int `json:"deletions"`
}
Contributor mirrors one entry from the upstream contributors list.
type Result ¶
type Result struct {
Skipped bool `json:"skipped,omitempty"`
SkippedReason string `json:"-"`
Mode string `json:"mode,omitempty"`
List []Contributor `json:"list"`
Sections []string `json:"sections"`
Base string `json:"base"`
Head string `json:"head"`
}
Result is the JSON payload published under data.Plugins["contributors"].