Class PullRequestToCauseConverter
java.lang.Object
org.jenkinsci.plugins.github.pullrequest.trigger.check.PullRequestToCauseConverter
- All Implemented Interfaces:
com.google.common.base.Function<org.kohsuke.github.GHPullRequest,
,GitHubPRCause> Function<org.kohsuke.github.GHPullRequest,
GitHubPRCause>
public class PullRequestToCauseConverter
extends Object
implements com.google.common.base.Function<org.kohsuke.github.GHPullRequest,GitHubPRCause>
- Author:
- lanwen (Merkushev Kirill)
-
Constructor Summary
ConstructorDescriptionPullRequestToCauseConverter
(GitHubPRRepository localRepo, TaskListener listener, GitHubSCMSource source, GitHubPRHandler prHandler) -
Method Summary
Modifier and TypeMethodDescriptionapply
(org.kohsuke.github.GHPullRequest remotePR) TODO migrate to java8 and cleanup.static PullRequestToCauseConverter
toGitHubPRCause
(GitHubPRRepository localRepo, TaskListener listener, GitHubPRHandler prHandler, GitHubSCMSource source) static PullRequestToCauseConverter
toGitHubPRCause
(GitHubPRRepository localRepo, TaskListener listener, GitHubPRTrigger trigger) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
PullRequestToCauseConverter
public PullRequestToCauseConverter(@NonNull GitHubPRRepository localRepo, @NonNull TaskListener listener, @NonNull GitHubSCMSource source, @NonNull GitHubPRHandler prHandler)
-
-
Method Details
-
toGitHubPRCause
public static PullRequestToCauseConverter toGitHubPRCause(@NonNull GitHubPRRepository localRepo, @NonNull TaskListener listener, @NonNull GitHubPRTrigger trigger) -
toGitHubPRCause
public static PullRequestToCauseConverter toGitHubPRCause(@NonNull GitHubPRRepository localRepo, @NonNull TaskListener listener, @NonNull GitHubPRHandler prHandler, @NonNull GitHubSCMSource source) -
apply
TODO migrate to java8 and cleanup.- Specified by:
apply
in interfacecom.google.common.base.Function<org.kohsuke.github.GHPullRequest,
GitHubPRCause> - Specified by:
apply
in interfaceFunction<org.kohsuke.github.GHPullRequest,
GitHubPRCause> - Returns:
- only real trigger cause if matched trigger (not skip) event found for this remotePr.
-
getEvents
-