GitHubApi

Trait GitHubApi 

Source
pub trait GitHubApi {
    // Required methods
    fn app_slug(&self) -> String;
    fn create_issue_comment(
        &self,
        owner: &str,
        repo: &str,
        issue_id: i64,
        body: &str,
    ) -> Result<(), GithubError>;
    fn list_issue_comments(
        &self,
        owner: &str,
        repo: &str,
        issue_id: i64,
    ) -> Result<Vec<Comment>, GithubError>;
    fn update_issue_comment(
        &self,
        owner: &str,
        repo: &str,
        comment_id: i64,
        body: &str,
    ) -> Result<(), GithubError>;
}

Required Methods§

Source

fn app_slug(&self) -> String

Source

fn create_issue_comment( &self, owner: &str, repo: &str, issue_id: i64, body: &str, ) -> Result<(), GithubError>

Source

fn list_issue_comments( &self, owner: &str, repo: &str, issue_id: i64, ) -> Result<Vec<Comment>, GithubError>

Source

fn update_issue_comment( &self, owner: &str, repo: &str, comment_id: i64, body: &str, ) -> Result<(), GithubError>

Implementors§

Source§

impl GitHubApi for squawk_github::actions::GitHub

Source§

impl GitHubApi for squawk_github::app::GitHub