Class PullRequestGHEventSubscriber

  • All Implemented Interfaces:
    ExtensionPoint

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

      • PullRequestGHEventSubscriber

        public PullRequestGHEventSubscriber()
    • Method Detail

      • isApplicable

        protected boolean isApplicable​(@Nullable
                                       Item project)
        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
        Returns:
        set with only PULL_REQUEST event
      • onEvent

        protected void onEvent​(org.jenkinsci.plugins.github.extension.GHSubscriberEvent event)
        Overrides:
        onEvent in class org.jenkinsci.plugins.github.extension.GHEventsSubscriber