@staticmethod
def get_message(build, commit):
    """Extract the message from the commit or comment.

        Arguments:
          build (:py:class:`dict`): The JSON data from the response.
          commit (:py:class:`dict`): The JSON data from the response.

        Returns:
          :py:class:`str`: The commit or comment message.

        """
    return build.get('comment') or commit.get('message')
