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)
| 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. |
| 775 | func 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. |
no outgoing calls
no test coverage detected