Output Variables

class git_bot_feedback.OutputVariable

A type to represent an output variable.

This is akin to the key/value pairs used in most config file formats but with some limitations:

  • Both [Self::name] and [Self::value] must be UTF-8 encoded.

  • The [Self::value] cannot span multiple lines.

name

The output variable’s name.

validate_py()

Validate that the output variable is well-formed.

Instead of returning a false boolean value when the output variable is somehow invalid, this method raises an exception to describe a specific problem. Prefer using a try/except block with this function instead of checking the return value (which is None).

value

The output variable’s value.