Class IssueLabelGHEventSubscriber

  • All Implemented Interfaces:
    ExtensionPoint

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

      • IssueLabelGHEventSubscriber

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