Class IssueCommentGHEventSubscriber

  • All Implemented Interfaces:
    ExtensionPoint

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

      • IssueCommentGHEventSubscriber

        public IssueCommentGHEventSubscriber()
    • Method Detail

      • 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