Skip to main content

git_bot_feedback/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, missing_docs)]
4
5pub mod client;
6pub use client::{RestApiClient, RestApiRateLimitHeaders};
7pub mod error;
8pub use error::RestClientError;
9mod comments;
10pub use comments::{
11    review_comments::{ReviewAction, ReviewComment, ReviewOptions},
12    thread_comments::{CommentKind, CommentPolicy, ThreadCommentOptions},
13};
14mod output_variable;
15pub use output_variable::OutputVariable;
16mod file_annotations;
17pub use file_annotations::{AnnotationLevel, FileAnnotation};
18
19#[cfg(feature = "file-changes")]
20mod git_diff;
21#[cfg(feature = "file-changes")]
22pub use git_diff::{DiffHunkHeader, parse_diff};
23#[cfg(feature = "file-changes")]
24mod file_utils;
25#[cfg(feature = "file-changes")]
26pub use file_utils::{FileDiffLines, LinesChangedOnly, file_filter::FileFilter};
27
28// Re-export dependencies for users of optional feature
29#[cfg(feature = "file-changes")]
30#[cfg_attr(docsrs, doc(cfg(feature = "file-changes")))]
31pub use fast_glob;
32#[cfg(feature = "file-changes")]
33#[cfg_attr(docsrs, doc(cfg(feature = "file-changes")))]
34pub use regex;