Struct ci_manager::ci_provider::github::GitHub
source · pub struct GitHub { /* private fields */ }Implementations§
source§impl GitHub
impl GitHub
pub fn init() -> Result<()>
pub fn new(token: &str) -> Result<Self>
pub async fn create_issue_from_run( &self, repo: &String, run_id: &String, label: &String, kind: &WorkflowKind, no_duplicate: bool, title: &String ) -> Result<()>
pub async fn open_issues(&self, owner: &str, repo: &str) -> Result<Vec<Issue>>
pub async fn issues_at<I, S>( &self, owner: &str, repo: &str, date: DateFilter, state: State, labels: LabelFilter<I, S> ) -> Result<Vec<Issue>>
sourcepub async fn create_issue(
&self,
owner: &str,
repo: &str,
issue: Issue
) -> Result<()>
pub async fn create_issue( &self, owner: &str, repo: &str, issue: Issue ) -> Result<()>
Create an issue
pub async fn get_all_labels( &self, owner: &str, repo: &str ) -> Result<Vec<Label>>
pub async fn workflow_run( &self, owner: &str, repo: &str, run_id: RunId ) -> Result<Run>
pub async fn workflow_run_jobs( &self, owner: &str, repo: &str, run_id: RunId ) -> Result<Vec<Job>>
pub async fn download_job_logs( &self, owner: &str, repo: &str, run_id: RunId ) -> Result<Vec<JobLog>>
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