Skip to content

Commit

Permalink
fixup! fixup! eval: partially split up github interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Nov 6, 2020
1 parent deddfd1 commit c5386e4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ofborg/src/ghrepo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ impl<'a> Client<'a> {
self.repo.issue(number)
}

pub fn create_status(
&self,
sha: &str,
status: &StatusOptions,
) -> Result<Status, hubcaps::Error> {
pub fn create_status(&self, sha: &str, status: &StatusOptions) -> hubcaps::Result<Status> {
self.repo.statuses().create(sha, status)
}

pub fn create_checkrun(&self, check: &CheckRunOptions) -> Result<CheckRun, hubcaps::Error> {
pub fn create_checkrun(&self, check: &CheckRunOptions) -> hubcaps::Result<CheckRun> {
self.repo.checkruns().create(&check)
}

Expand Down

0 comments on commit c5386e4

Please sign in to comment.