Class IssueCommentGHEventSubscriber

java.lang.Object
org.jenkinsci.plugins.github.extension.GHEventsSubscriber
com.adobe.jenkins.github_pr_comment_build.IssueCommentGHEventSubscriber
All Implemented Interfaces:
ExtensionPoint

@Extension public class IssueCommentGHEventSubscriber extends org.jenkinsci.plugins.github.extension.GHEventsSubscriber
This subscriber manages GHEvent ISSUE_COMMENT.
  • Constructor Details

    • IssueCommentGHEventSubscriber

      public IssueCommentGHEventSubscriber()
  • Method Details

    • isApplicable

      protected boolean isApplicable(Item item)
      Specified by:
      isApplicable in class org.jenkinsci.plugins.github.extension.GHEventsSubscriber
    • events

      protected Set<org.kohsuke.github.GHEvent> events()
      Specified by:
      events in class org.jenkinsci.plugins.github.extension.GHEventsSubscriber
    • onEvent

      protected void onEvent(org.kohsuke.github.GHEvent event, String payload)
      Handles comments on pull requests.
      Overrides:
      onEvent in class org.jenkinsci.plugins.github.extension.GHEventsSubscriber
      Parameters:
      event - only ISSUE_COMMENT event
      payload - payload of gh-event. Never blank