pub struct GithubClient { /* private fields */ }Implementations§
Source§impl GithubClient
impl GithubClient
pub fn new(repo: impl Into<String>, token: impl Into<String>) -> Self
pub fn with_base_url( repo: impl Into<String>, token: impl Into<String>, base_url: impl Into<String>, ) -> Self
Sourcepub fn upsert_pr_comment(
&self,
pr_number: u64,
marker: &str,
body: &str,
) -> Result<CommentAction, GithubError>
pub fn upsert_pr_comment( &self, pr_number: u64, marker: &str, body: &str, ) -> Result<CommentAction, GithubError>
Update the PR comment containing marker if one exists, otherwise
create it (marker-based upsert per design doc §8.1).
pub fn upsert_pr_comment_with_aliases( &self, pr_number: u64, marker: &str, legacy_marker_prefixes: &[&str], body: &str, ) -> Result<CommentAction, GithubError>
pub fn pull_request_head_sha( &self, pr_number: u64, ) -> Result<String, GithubError>
pub fn create_check_run( &self, name: &str, head_sha: &str, title: &str, summary: &str, annotations: &[CheckAnnotation], ) -> Result<u64, GithubError>
Auto Trait Implementations§
impl !RefUnwindSafe for GithubClient
impl !UnwindSafe for GithubClient
impl Freeze for GithubClient
impl Send for GithubClient
impl Sync for GithubClient
impl Unpin for GithubClient
impl UnsafeUnpin for GithubClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more