Class GHEventPayload.Push

    • Constructor Detail

      • Push

        public Push()
    • Method Detail

      • getHead

        public String getHead()
        The SHA of the HEAD commit on the repository.
        Returns:
        the head
      • getBefore

        public String getBefore()
        This is undocumented, but it looks like this captures the commit that the ref was pointing to before the push.
        Returns:
        the before
      • getRef

        public String getRef()
        The full Git ref that was pushed. Example: “refs/heads/main”
        Returns:
        the ref
      • getSize

        public int getSize()
        The number of commits in the push. Is this always the same as getCommits().size()?
        Returns:
        the size
      • isCreated

        public boolean isCreated()
        Is created boolean.
        Returns:
        the boolean
      • isDeleted

        public boolean isDeleted()
        Is deleted boolean.
        Returns:
        the boolean
      • isForced

        public boolean isForced()
        Is forced boolean.
        Returns:
        the boolean
      • setPusher

        @Deprecated
        public void setPusher​(GHEventPayload.Push.Pusher pusher)
        Deprecated.
        Do not use this method. It was added due to incomplete understanding of Jackson binding.
        Sets pusher.
        Parameters:
        pusher - the pusher
      • getCompare

        public String getCompare()
        Gets compare.
        Returns:
        compare
      • getRoot

        @Deprecated
        public GitHub getRoot()
        Deprecated.
        For access to the GitHub instance, use a local copy instead of pulling it out of objects.
        Get the root GitHub instance for this object.
        Returns:
        the root GitHub instance