perfgate_github/lib.rs
1//! # perfgate-github
2//!
3//! GitHub API client and comment rendering for perfgate PR comments.
4//!
5//! This crate provides:
6//!
7//! - A GitHub REST API client for creating, updating, and finding PR comments
8//! - Rich Markdown comment rendering with verdict badges, metric tables, trend indicators,
9//! and blame attribution
10//! - Idempotent comment updates via a marker comment (`<!-- perfgate -->`)
11//! - Support for both GitHub Actions (GITHUB_TOKEN) and personal access tokens
12
13pub mod client;
14pub mod comment;
15pub mod error;
16pub mod types;
17
18pub use client::{COMMENT_MARKER, GitHubClient};
19pub use comment::{
20 CommentOptions, parse_github_repository, parse_pr_number_from_ref, render_comment,
21 render_comment_from_report,
22};
23pub use error::GitHubError;
24pub use types::GitHubComment;