Class PRUpdateGHEventSubscriber
- java.lang.Object
-
- org.jenkinsci.plugins.github.extension.GHEventsSubscriber
-
- com.adobe.jenkins.github_pr_comment_build.PRUpdateGHEventSubscriber
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class PRUpdateGHEventSubscriber extends org.jenkinsci.plugins.github.extension.GHEventsSubscriber
This subscriber managesGHEvent
PULL_REQUEST edits.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description PRUpdateGHEventSubscriber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<org.kohsuke.github.GHEvent>
events()
protected boolean
isApplicable(Item item)
protected void
onEvent(org.kohsuke.github.GHEvent event, String payload)
Handles updates of pull requests.
-
-
-
Method Detail
-
isApplicable
protected boolean isApplicable(Item item)
- Specified by:
isApplicable
in classorg.jenkinsci.plugins.github.extension.GHEventsSubscriber
-
events
protected Set<org.kohsuke.github.GHEvent> events()
- Specified by:
events
in classorg.jenkinsci.plugins.github.extension.GHEventsSubscriber
-
onEvent
protected void onEvent(org.kohsuke.github.GHEvent event, String payload)
Handles updates of pull requests.- Overrides:
onEvent
in classorg.jenkinsci.plugins.github.extension.GHEventsSubscriber
- Parameters:
event
- only PULL_REQUEST eventspayload
- payload of gh-event. Never blank
-
-