Class GitHubHelper
java.lang.Object
org.jenkinsci.plugins.pipeline.github.GitHubHelper
Various utility methods to obtain clients, repos and pull request scm heads from Jobs
- Author:
- Aaron Whiteside
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedGitHubClient
getGitHubClient
(Job<?, ?> job) static Job
static org.jenkinsci.plugins.github_branch_source.PullRequestSCMHead
getPullRequest
(Job job) static org.eclipse.egit.github.core.RepositoryId
getRepositoryId
(Job<?, ?> job) static Boolean
isAuthorized
(Job<?, ?> job, String User) static String
userToLogin
(org.eclipse.egit.github.core.User user)