Module: services/build-status

Common functions and schemas for tasks related to build status.

Source:

Members

(inner, constant) isBuildStatus :Joi

Joi schema for validating Build Status. Checks if the build status is present in the list of allowed build status.

Type:
  • Joi
Source:

Methods

(inner) renderBuildStatusBadge(attrs) → {object}

Handles rendering concerns of badges that display build status. Determines the message and color of the badge according to the build status.

Parameters:
Name Type Description
attrs object

Refer to individual attributes

Properties
Name Type Attributes Description
label string <optional>

If provided then badge label is set to this value

status string

Build status

Source:
Returns:

Badge with label, message and color properties

Type
object