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
|
- Source:
Returns:
Badge with label, message and color properties
- Type
- object