Class IssueCommentGHEventSubscriber
java.lang.Object
org.jenkinsci.plugins.github.extension.GHEventsSubscriber
com.adobe.jenkins.github_pr_comment_build.BasePRGHEventSubscriber<TriggerPRCommentBranchProperty,String>
com.adobe.jenkins.github_pr_comment_build.IssueCommentGHEventSubscriber
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class IssueCommentGHEventSubscriber
extends BasePRGHEventSubscriber<TriggerPRCommentBranchProperty,String>
This subscriber manages
GHEvent ISSUE_COMMENT.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class com.adobe.jenkins.github_pr_comment_build.BasePRGHEventSubscriber
REPOSITORY_NAME_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<org.kohsuke.github.GHEvent>events()protected Class<TriggerPRCommentBranchProperty>protected voidHandles comments on pull requests.protected voidpostStartJob(TriggerPRCommentBranchProperty branchProp, Job<?, ?> job, String payload) Called after a job is started successfully, may be used for adding reactions or performing other actions.Methods inherited from class com.adobe.jenkins.github_pr_comment_build.BasePRGHEventSubscriber
checkAndRunJobs, getChangedRepository, getRepoUrl, isApplicableMethods inherited from class org.jenkinsci.plugins.github.extension.GHEventsSubscriber
all, extractEvents, isApplicable, isApplicableFor, isApplicableFor, isInterestedIn, onEvent, processEvent, processEvent
-
Constructor Details
-
IssueCommentGHEventSubscriber
public IssueCommentGHEventSubscriber()
-
-
Method Details
-
getTriggerClass
- Specified by:
getTriggerClassin classBasePRGHEventSubscriber<TriggerPRCommentBranchProperty,String>
-
events
- Specified by:
eventsin classorg.jenkinsci.plugins.github.extension.GHEventsSubscriber
-
postStartJob
protected void postStartJob(TriggerPRCommentBranchProperty branchProp, Job<?, ?> job, String payload) Description copied from class:BasePRGHEventSubscriberCalled after a job is started successfully, may be used for adding reactions or performing other actions.- Overrides:
postStartJobin classBasePRGHEventSubscriber<TriggerPRCommentBranchProperty,String> - Parameters:
branchProp- the branch propertyjob- the jobpayload- an arbitrary parameter
-
onEvent
Handles comments on pull requests.- Overrides:
onEventin classorg.jenkinsci.plugins.github.extension.GHEventsSubscriber- Parameters:
event- only ISSUE_COMMENT eventpayload- payload of gh-event. Never blank
-