pub struct GitHub { /* private fields */ }Implementations§
Source§impl GitHub
impl GitHub
pub fn new(config: Config, git: Git) -> Self
pub async fn get_github_user(login: String) -> Result<UserWithName>
pub async fn get_github_team(owner: String, team: String) -> Result<Team>
pub async fn get_pull_request(self, number: u64) -> Result<PullRequest>
pub async fn create_pull_request( &self, message: &MessageSectionsMap, base_ref_name: String, head_ref_name: String, draft: bool, ) -> Result<u64>
pub async fn update_pull_request( &self, number: u64, updates: PullRequestUpdate, ) -> Result<()>
pub async fn request_reviewers( &self, number: u64, reviewers: PullRequestRequestReviewers, ) -> Result<()>
pub async fn get_pull_request_mergeability( &self, number: u64, ) -> Result<PullRequestMergeability>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitHub
impl RefUnwindSafe for GitHub
impl Send for GitHub
impl Sync for GitHub
impl Unpin for GitHub
impl UnwindSafe for GitHub
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more