public class GitHubHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static ExtendedGitHubClient |
getGitHubClient(hudson.model.Job<?,?> job) |
static hudson.model.Job |
getJob(String jobId) |
static org.jenkinsci.plugins.github_branch_source.PullRequestSCMHead |
getPullRequest(hudson.model.Job job) |
static org.eclipse.egit.github.core.RepositoryId |
getRepositoryId(hudson.model.Job<?,?> job) |
static Boolean |
isAuthorized(hudson.model.Job<?,?> job,
String User) |
static String |
userToLogin(org.eclipse.egit.github.core.User user) |
public static Boolean isAuthorized(@Nonnull hudson.model.Job<?,?> job, @Nonnull String User)
public static ExtendedGitHubClient getGitHubClient(@Nonnull hudson.model.Job<?,?> job)
public static org.eclipse.egit.github.core.RepositoryId getRepositoryId(@Nonnull hudson.model.Job<?,?> job)
public static org.jenkinsci.plugins.github_branch_source.PullRequestSCMHead getPullRequest(@Nonnull hudson.model.Job job) throws Exception
Exceptionpublic static String userToLogin(org.eclipse.egit.github.core.User user)
public static hudson.model.Job getJob(String jobId)
Copyright © 2016–2023. All rights reserved.