Package org.kohsuke.github
Class GHProject
java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHProject
A GitHub project.
- Author:
- Martin van Zijl
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enum ProjectState.static enumThe enum ProjectStateFilter. -
Field Summary
FieldsFields inherited from class org.kohsuke.github.GHObject
responseHeaderFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateColumn(String name) Create column gh project column.voiddelete()Delete.protected StringGets api route.getBody()Gets body.Gets creator.Gets the html url.getName()Gets name.Deprecated.intGets number.getOwner()Gets owner.Gets owner url.getRoot()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.getState()Gets state.List columns paged iterable.voidSets body.voidSets name.voidsetOrganizationPermission(GHPermissionType permission) Set the permission level that all members of the project's organization will have on this project.voidsetPublic(boolean isPublic) Sets visibility of the project within the organization.voidsetState(GHProject.ProjectState state) Sets state.wrap(GHRepository repo) Deprecated.Deprecated.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Field Details
-
owner
The owner.
-
-
Constructor Details
-
GHProject
public GHProject()
-
-
Method Details
-
getHtmlUrl
Gets the html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- the html url
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getOwner
Gets owner.- Returns:
- the owner
- Throws:
IOException- the io exception
-
getOwnerUrl
Gets owner url.- Returns:
- the owner url
-
getNode_id
Deprecated.Gets node id.- Returns:
- the node id
-
getName
Gets name.- Returns:
- the name
-
getBody
Gets body.- Returns:
- the body
-
getNumber
public int getNumber()Gets number.- Returns:
- the number
-
getState
Gets state.- Returns:
- the state
-
getCreator
Gets creator.- Returns:
- the creator
-
wrap
Deprecated.Wrap gh project.- Parameters:
root- the root- Returns:
- the gh project
-
wrap
Deprecated.Wrap gh project.- Parameters:
repo- the repo- Returns:
- the gh project
-
getApiRoute
Gets api route.- Returns:
- the api route
-
setName
Sets name.- Parameters:
name- the name- Throws:
IOException- the io exception
-
setBody
Sets body.- Parameters:
body- the body- Throws:
IOException- the io exception
-
setState
Sets state.- Parameters:
state- the state- Throws:
IOException- the io exception
-
setOrganizationPermission
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
Sets visibility of the project within the organization. Only applicable for organization-owned projects.- Parameters:
isPublic- the is public- Throws:
IOException- the io exception
-
delete
Delete.- Throws:
IOException- the io exception
-
listColumns
List columns paged iterable.- Returns:
- the paged iterable
- Throws:
IOException- the io exception
-
createColumn
Create column gh project column.- Parameters:
name- the name- Returns:
- the gh project column
- Throws:
IOException- the io exception
-
getRoot
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
GHObject.getNodeId()