Skip to main content

Crate perfgate_github

Crate perfgate_github 

Source
Expand description

§perfgate-github

GitHub API client and comment rendering for perfgate PR comments.

This crate provides:

  • A GitHub REST API client for creating, updating, and finding PR comments
  • Rich Markdown comment rendering with verdict badges, metric tables, trend indicators, and blame attribution
  • Idempotent comment updates via a marker comment (<!-- perfgate -->)
  • Support for both GitHub Actions (GITHUB_TOKEN) and personal access tokens

Re-exports§

pub use client::COMMENT_MARKER;
pub use client::GitHubClient;
pub use comment::CommentOptions;
pub use comment::parse_github_repository;
pub use comment::parse_pr_number_from_ref;
pub use comment::render_comment;
pub use comment::render_comment_from_report;
pub use error::GitHubError;
pub use types::GitHubComment;

Modules§

client
GitHub REST API client for managing PR comments.
comment
Comment body rendering for GitHub PR comments.
error
Error types for the GitHub API client.
types
Types for GitHub API responses and requests.