Class GHProjectsV2Item

java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.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:
  • Constructor Details

    • GHProjectsV2Item

      public GHProjectsV2Item()
      Create default GHProjectsV2Item instance
  • Method Details

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

      public GHProjectsV2Item.ContentType getContentType()
      Gets the content type.
      Returns:
      the content type
    • 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.
      Returns:
      the html url