Class GithubTriggerPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.gamification.github.plugin.GithubTriggerPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Direct Known Subclasses:
CommentPullRequestTriggerPlugin, CommentTriggerPlugin, IssueTriggerPlugin, PullRequestReviewTriggerPlugin, PullRequestTriggerPlugin, PushCodeTriggerPlugin

public abstract class GithubTriggerPlugin extends org.exoplatform.container.component.BaseComponentPlugin
A plugin that will be used by WebhookService to handle github triggers
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract List<Event>
    Gets List of triggered events

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GithubTriggerPlugin

      public GithubTriggerPlugin()
  • Method Details

    • getEvents

      public abstract List<Event> getEvents(Map<String,Object> payload)
      Gets List of triggered events
      Parameters:
      payload - payload The raw payload of the webhook request.
      Returns:
      List of triggered events