Documentation
¶
Overview ¶
Package sponsors owns the M4 "sponsors" plugin. The plugin is gated by the `read:user` AND `read:org` OAuth scopes; the MVP wires the scope-gate path and returns an empty (but non-Skipped) Result when both scopes are present. The full GraphQL fetch lands as a follow-up.
Contracts: specs/004-m4-github-plugins/contracts/plugin-p2-graphql.md §9 Data model: specs/004-m4-github-plugins/data-model.md E-030
Index ¶
Constants ¶
const Name = "sponsors"
Name is the canonical plugin slug.
Variables ¶
var Plugin plugins.Plugin = &sponsorsPlugin{}
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:"-"`
Mode string `json:"mode,omitempty"`
Sections []string `json:"sections"`
Sponsors []Sponsor `json:"sponsors"`
Past []Sponsor `json:"past,omitempty"`
}
Result is the JSON payload published under data.Plugins["sponsors"].