Class GithubServiceImpl
java.lang.Object
com.winchesters.devopsify.service.technologies.github.GithubServiceImpl
- All Implemented Interfaces:
GithubService
@Validated
@Service
@Transactional
public class GithubServiceImpl
extends Object
implements GithubService
-
Field Summary
Fields inherited from interface com.winchesters.devopsify.service.technologies.github.GithubService
allPermissions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.github.GitHub
connectToGithub
(@NotNull GithubCredentials githubCredentials) initialize github and verify access tokenorg.kohsuke.github.GitHub
-
Constructor Details
-
GithubServiceImpl
public GithubServiceImpl()
-
-
Method Details
-
getGithub
- 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 interfaceGithubService
- 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
-