def add_ci_comment
    return if repository.vpt_config.dig('comment_on', 'tests_failed') == false
    return unless eligible_for_ci_comment

    add_comment(I18n.t('comment.tests_fail', author: author))