pub struct GithubRepo { /* private fields */ }Implementations§
Source§impl GithubRepo
impl GithubRepo
pub fn new(user: &str, name: &str) -> Self
pub async fn load(user: &str, name: &str) -> Result<Self>
pub fn remote(&self, protocol: GitProtocol) -> String
pub async fn test_repo(&self) -> Result<TestRepoResult>
pub fn clone(&self, path: &Path) -> Result<GitRepo>
pub async fn instantiate_from_package( package: &QuestPackage, ) -> Result<GithubRepo>
pub async fn instantiate_from_repo(base: &GithubRepo) -> Result<GithubRepo>
pub fn repo_handler(&self) -> RepoHandler<'_>
pub async fn branches(&self) -> Result<Vec<Branch>>
pub fn pr_handler(&self) -> PullRequestHandler<'_>
pub fn prs(&self) -> MappedMutexGuard<'_, Vec<PullRequest>>
pub fn pr( &self, selector: &PullSelector, ) -> Option<MappedMutexGuard<'_, PullRequest>>
pub async fn pr_comments(&self, pr: &PullRequest) -> Result<Vec<Comment>>
pub fn issue_handler(&self) -> IssueHandler<'_>
pub fn issues(&self) -> MappedMutexGuard<'_, Vec<Issue>>
pub fn issue(&self, label_name: &str) -> Option<MappedMutexGuard<'_, Issue>>
pub async fn copy_pr( &self, pr: &PullRequest, comments: &[Comment], head: &str, merge_type: MergeType, ) -> Result<PullRequest>
pub async fn copy_pr_comment( &self, pr: u64, comment: &Comment, commit: &str, ) -> Result<()>
pub async fn copy_issue(&self, issue: &Issue) -> Result<Issue>
pub async fn close_issue(&self, issue: &Issue) -> Result<()>
pub async fn merge_pr(&self, pr: &PullRequest) -> Result<()>
pub async fn delete(&self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for GithubRepo
impl !RefUnwindSafe for GithubRepo
impl Send for GithubRepo
impl Sync for GithubRepo
impl Unpin for GithubRepo
impl UnsafeUnpin for GithubRepo
impl !UnwindSafe for GithubRepo
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> 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