MCPcopy Create free account
hub / github.com/ejoffe/spr / contextName

Function contextName

github/githubclient/client.go:775–780  ·  view source on GitHub ↗

contextName returns the display name for a check context node. For CheckRun nodes this is the Name field; for StatusContext nodes it's the Context field.

(ctx checkContextNode)

Source from the content-addressed store, hash-verified

773// contextName returns the display name for a check context node.
774// For CheckRun nodes this is the Name field; for StatusContext nodes it's the Context field.
775func contextName(ctx checkContextNode) string {
776 if ctx.TypeName == "StatusContext" {
777 return ctx.Context
778 }
779 return ctx.Name
780}
781
782// computeRequiredCheckStatus determines the aggregate check status considering
783// only the checks whose name/context appears in requiredChecks.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected