java.lang.Object
com.winchesters.devopsify.service.technologies.github.GithubServiceImpl
All Implemented Interfaces:
GithubService

@Validated @Service @Transactional public class GithubServiceImpl extends Object implements GithubService
  • Constructor Details

    • GithubServiceImpl

      public GithubServiceImpl()
  • Method Details

    • getGithub

      public org.kohsuke.github.GitHub getGithub() throws IOException
      Throws:
      IOException
    • connectToGithub

      public org.kohsuke.github.GitHub connectToGithub(@NotNull @NotNull GithubCredentials githubCredentials) throws IOException
      Description copied from interface: GithubService
      initialize github and verify access token
      Specified by:
      connectToGithub in interface GithubService
      Parameters:
      githubCredentials - username && personal access token : (https://github.com/settings/tokens)
      Returns:
      created Github Object
      Throws:
      IOException - if a problem occurs while connecting to github with the personalAccessToken