Package CIserver.app

Class GitHubRepositoryDownloader

java.lang.Object
CIserver.app.GitHubRepositoryDownloader

public class GitHubRepositoryDownloader extends Object
Class that handles downloading and extracting GitHub repositories
  • Constructor Details

    • GitHubRepositoryDownloader

      public GitHubRepositoryDownloader() throws IOException
      Default constructor
      Throws:
      IOException
  • Method Details

    • download

      public String download(String commit, String owner, String repo) throws IOException
      This method downloads and extracts a GitHub repository
      Parameters:
      commit - the commit SHA value of the commit to be downloaded
      owner - name of the GitHub repository owner
      repo - name of the GitHub repository
      Throws:
      IOException - if the response code from the HTTP request fails