Documentation
¶
Overview ¶
Package enhancers holds the built-in pkg/enhance implementations: noop (the explicit "nothing configured" placeholder) and staticfile (a YAML-backed repo→ownership map that doubles as the fake CMDB for development and e2e). The real CMDB integration implements the same pkg/enhance.Enhancer seam later.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Noop ¶
type Noop struct{}
Noop is the placeholder enhancer used when no context source is configured: it records that enhancement ran with nothing to add, so the issue still advances through the pipeline.
type StaticFile ¶
type StaticFile struct {
// contains filtered or unexported fields
}
StaticFile enhances issues from a YAML map of repositories to ownership, attributes, and optional free-form markdown — the stand-in for a CMDB:
repos:
acme/shop:
owners: [octocat, hubot]
attributes:
system: storefront
tier: "1"
markdown: |
Storefront is PCI-scoped; page #payments-oncall first.
func NewStaticFile ¶
func NewStaticFile(path string) (*StaticFile, error)
NewStaticFile loads the map from path.
func (*StaticFile) Enhance ¶
func (s *StaticFile) Enhance(_ context.Context, issue enhance.Issue) (*enhance.Enrichment, error)
Enhance implements enhance.Enhancer; a repository absent from the map contributes nothing.