Class GHProject


  • public class GHProject
    extends GHObject
    A GitHub project.
    Author:
    Martin van Zijl
    See Also:
    Projects
    • Constructor Detail

      • GHProject

        public GHProject()
    • Method Detail

      • getRoot

        public GitHub getRoot()
        Gets root.
        Returns:
        the root
      • getOwnerUrl

        public URL getOwnerUrl()
        Gets owner url.
        Returns:
        the owner url
      • getName

        public String getName()
        Gets name.
        Returns:
        the name
      • getBody

        public String getBody()
        Gets body.
        Returns:
        the body
      • getNumber

        public int getNumber()
        Gets number.
        Returns:
        the number
      • getCreator

        public GHUser getCreator()
        Gets creator.
        Returns:
        the creator
      • wrap

        public GHProject wrap​(GHRepository repo)
        Wrap gh project.
        Parameters:
        repo - the repo
        Returns:
        the gh project
      • wrap

        public GHProject wrap​(GitHub root)
        Wrap gh project.
        Parameters:
        root - the root
        Returns:
        the gh project
      • getApiRoute

        protected String getApiRoute()
        Gets api route.
        Returns:
        the api route
      • setName

        public void setName​(String name)
                     throws IOException
        Sets name.
        Parameters:
        name - the name
        Throws:
        IOException - the io exception
      • setBody

        public void setBody​(String body)
                     throws IOException
        Sets body.
        Parameters:
        body - the body
        Throws:
        IOException - the io exception
      • setOrganizationPermission

        public void setOrganizationPermission​(GHPermissionType permission)
                                       throws IOException
        Set the permission level that all members of the project's organization will have on this project. Only applicable for organization-owned projects.
        Parameters:
        permission - the permission
        Throws:
        IOException - the io exception
      • setPublic

        public void setPublic​(boolean isPublic)
                       throws IOException
        Sets visibility of the project within the organization. Only applicable for organization-owned projects.
        Parameters:
        isPublic - the is public
        Throws:
        IOException - the io exception
      • createColumn

        public GHProjectColumn createColumn​(String name)
                                     throws IOException
        Create column gh project column.
        Parameters:
        name - the name
        Returns:
        the gh project column
        Throws:
        IOException - the io exception