Class PullRequestGHEventSubscriber

java.lang.Object
org.jenkinsci.plugins.github.extension.GHEventsSubscriber
org.jenkinsci.plugins.github_branch_source.PullRequestGHEventSubscriber
All Implemented Interfaces:
ExtensionPoint

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

    • PullRequestGHEventSubscriber

      public PullRequestGHEventSubscriber()
  • Method Details

    • 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