Class GHProjectsV2Item


  • public class GHProjectsV2Item
    extends GHObject
    A Projects V2 item in the organization.

    Projects V2 are not attached to a repository but to an organization, even if it is possible to create shortcuts at the repository level.

    This event exposes the GraphQL object (more or less - the ids are handled differently for instance) directly. The new Projects V2 API is only available through GraphQL so for now you cannot execute any actions on this object.

    Author:
    Guillaume Smet
    See Also:
    The GraphQL API for Projects V2
    • Constructor Detail

      • GHProjectsV2Item

        public GHProjectsV2Item()
    • Method Detail

      • getProjectNodeId

        public String getProjectNodeId()
        Gets the project node id.
        Returns:
        the project node id
      • getContentNodeId

        public String getContentNodeId()
        Gets the content node id.
        Returns:
        the content node id
      • getCreator

        public GHUser getCreator()
                          throws IOException
        Gets the creator.
        Returns:
        the creator
        Throws:
        IOException - Signals that an I/O exception has occurred.
      • getArchivedAt

        public Date getArchivedAt()
        Gets the archived at.
        Returns:
        the archived at
      • getHtmlUrl

        public URL getHtmlUrl()
        Gets the html url.
        Specified by:
        getHtmlUrl in class GHObject
        Returns:
        the html url
      • 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