Class GitHubPRDecisionContext
java.lang.Object
com.github.kostyasha.github.integration.generic.GitHubDecisionContext<GitHubPREvent,GitHubPRCause>
com.github.kostyasha.github.integration.generic.GitHubPRDecisionContext
- Author:
- Kanstantsin Shautsou
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GitHubPRDecisionContext
(org.kohsuke.github.GHPullRequest remotePR, GitHubPRPullRequest localPR, GitHubPRRepository localRepo, GitHubPRUserRestriction prUserRestriction, GitHubSCMSource source, GitHubPRHandler prHandler, GitHubPRTrigger prTrigger, TaskListener listener) protected
GitHubPRDecisionContext
(org.kohsuke.github.GHPullRequest remotePR, GitHubPRPullRequest localPR, GitHubPRUserRestriction prUserRestriction, GitHubSCMSource source, GitHubPRHandler prHandler, GitHubPRTrigger prTrigger, TaskListener listener) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncheckEvent
(GitHubPREvent event) PR state from last run saved in jenkins.Deprecated.org.kohsuke.github.GHPullRequest
remotePR current PR state fetched from GH remotePRs are always existing on gh.Methods inherited from class com.github.kostyasha.github.integration.generic.GitHubDecisionContext
getListener, getRemoteRepository, getScmSource
-
Constructor Details
-
GitHubPRDecisionContext
protected GitHubPRDecisionContext(@CheckForNull org.kohsuke.github.GHPullRequest remotePR, @CheckForNull GitHubPRPullRequest localPR, @CheckForNull GitHubPRRepository localRepo, @CheckForNull GitHubPRUserRestriction prUserRestriction, GitHubSCMSource source, GitHubPRHandler prHandler, GitHubPRTrigger prTrigger, @NonNull TaskListener listener) -
GitHubPRDecisionContext
@Deprecated protected GitHubPRDecisionContext(@CheckForNull org.kohsuke.github.GHPullRequest remotePR, @CheckForNull GitHubPRPullRequest localPR, @CheckForNull GitHubPRUserRestriction prUserRestriction, GitHubSCMSource source, GitHubPRHandler prHandler, GitHubPRTrigger prTrigger, @NonNull TaskListener listener) Deprecated.
-
-
Method Details
-
getRemotePR
@NonNull public org.kohsuke.github.GHPullRequest getRemotePR()remotePR current PR state fetched from GH remotePRs are always existing on gh. -
getLocalPR
PR state from last run saved in jenkins. null when not exist before -
getLocalRepo
-
getPrUserRestriction
-
getTrigger
- Overrides:
getTrigger
in classGitHubDecisionContext<GitHubPREvent,
GitHubPRCause>
-
getHandler
- Overrides:
getHandler
in classGitHubDecisionContext<GitHubPREvent,
GitHubPRCause>
-
getPrTrigger
Deprecated. -
checkEvent
- Specified by:
checkEvent
in classGitHubDecisionContext<GitHubPREvent,
GitHubPRCause> - Throws:
IOException
-
newCause
- Specified by:
newCause
in classGitHubDecisionContext<GitHubPREvent,
GitHubPRCause>
-
newGitHubPRDecisionContext
-