Class PRUpdateGHEventSubscriber

  • All Implemented Interfaces:
    ExtensionPoint

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

      • PRUpdateGHEventSubscriber

        public PRUpdateGHEventSubscriber()
    • 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 updates of pull requests.
        Overrides:
        onEvent in class org.jenkinsci.plugins.github.extension.GHEventsSubscriber
        Parameters:
        event - only PULL_REQUEST events
        payload - payload of gh-event. Never blank