Class PullRef.Smart

    • Constructor Detail

      • Smart

        public Smart​(PullRef pref)
        Public ctor.
        Parameters:
        pref - Pull request ref
    • Method Detail

      • repo

        public Repo repo()
        Description copied from interface: PullRef
        Get the repository which its commit is in.
        Specified by:
        repo in interface PullRef
        Returns:
        Repo
      • user

        public User user()
                  throws IOException
        Gets the user who owns the repository which its commit is in.
        Returns:
        User
        Throws:
        IOException - If there is any I/O problem
      • label

        public String label()
                     throws IOException
        Get its label. Normally of the form "user:branch".
        Returns:
        Label string
        Throws:
        IOException - If there is any I/O problem
      • json

        public javax.json.JsonObject json()
                                   throws IOException
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
        Throws:
        IOException - If there is any I/O problem