Class GHEventPayload

    • Method Detail

      • getAction

        public String getAction()
        Gets the action for the triggered event. Most but not all webhook payloads contain an action property that contains the specific activity that triggered the event.
        Returns:
        event action
      • getSender

        public GHUser getSender()
        Gets the sender or null if accessed via the events API.
        Returns:
        the sender or null if accessed via the events API.
      • setSender

        public void setSender​(GHUser sender)
        Sets sender.
        Parameters:
        sender - the sender
      • getRepository

        public GHRepository getRepository()
        Gets repository.
        Returns:
        the repository
      • setRepository

        public void setRepository​(GHRepository repository)
        Sets repository.
        Parameters:
        repository - the repository
      • getOrganization

        public GHOrganization getOrganization()
        Gets organization.
        Returns:
        the organization
      • setOrganization

        public void setOrganization​(GHOrganization organization)
        Sets organization.
        Parameters:
        organization - the organization
      • getInstallation

        public GHAppInstallation getInstallation()
        Gets installation
        Returns:
        the installation