Class SfIssue

    • Constructor Detail

      • SfIssue

        public SfIssue​(Issue issue)
        Public ctor.
        Parameters:
        issue - The original issue
    • Method Detail

      • 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
      • patch

        public void patch​(javax.json.JsonObject json)
                   throws IOException
        Description copied from interface: JsonPatchable
        Patch using this JSON object.
        Specified by:
        patch in interface JsonPatchable
        Parameters:
        json - JSON object
        Throws:
        IOException - If there is any I/O problem
      • repo

        public Repo repo()
        Description copied from interface: Issue
        Repository we're in.
        Specified by:
        repo in interface Issue
        Returns:
        Repo
      • number

        public int number()
        Description copied from interface: Issue
        Get its number.
        Specified by:
        number in interface Issue
        Returns:
        Issue number
      • labels

        public IssueLabels labels()
        Description copied from interface: Issue
        Get all labels of the issue.
        Specified by:
        labels in interface Issue
        Returns:
        Labels
        See Also:
        Labels API
      • exists

        public boolean exists()
                       throws IOException
        Description copied from interface: Issue
        Does this issue exist in Github?
        Specified by:
        exists in interface Issue
        Returns:
        TRUE if this issue exists
        Throws:
        IOException - If there is any I/O problem
      • react

        public void react​(Reaction reaction)
                   throws IOException
        Description copied from interface: Issue
        Adds the reaction to the issue.
        Specified by:
        react in interface Issue
        Parameters:
        reaction - Reaction to be added.
        Throws:
        IOException - If there is any I/O problem
      • reactions

        public Iterable<Reaction> reactions()
        Description copied from interface: Issue
        List the reactions of the issue.
        Specified by:
        reactions in interface Issue
        Returns:
        Issue reactions.
      • lock

        public void lock​(String reason)
        Description copied from interface: Issue
        Locks the issue.
        Specified by:
        lock in interface Issue
        Parameters:
        reason - Lock reason
      • unlock

        public void unlock()
        Description copied from interface: Issue
        Unlocks the issue.
        Specified by:
        unlock in interface Issue
      • isLocked

        public boolean isLocked()
        Description copied from interface: Issue
        The issue conversation is locked?
        Specified by:
        isLocked in interface Issue
        Returns:
        If the issue is locked.