blob: 7f67e22681e80f515c3a19464d6c430312bad27a [file] [log] [blame]
#!/usr/bin/env python3
# Copyright 2022 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
from dataclasses import dataclass
GIST_LINK_PLACEHORDER = "<<gist-link-placeholder>>"
@dataclass(frozen=True)
class CommentData(object):
"""Benchmark comment data."""
# Unique id to identify the same kind of comment.
type_id: str
# Abbreviated markdown to post as a comment.
abbr_md: str
# Abbreviated markdown to post on gist.
full_md: str
# Unverified PR number.
unverified_pr_number: int