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.intGets number.getOwner()Gets owner.Gets owner url.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.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()Create default GHProject instance
-
-
Method Details
-
createColumn
Create column gh project column.- Parameters:
name- the name- Returns:
- the gh project column
- Throws:
IOException- the io exception
-
delete
Delete.- Throws:
IOException- the io exception
-
getBody
Gets body.- Returns:
- the body
-
getCreator
Gets creator.- Returns:
- the creator
-
getHtmlUrl
Gets the html url.- Returns:
- the html url
-
getName
Gets name.- Returns:
- the name
-
getNumber
public int getNumber()Gets number.- Returns:
- the number
-
getOwner
Gets owner.- Returns:
- the owner
- Throws:
IOException- the io exception
-
getOwnerUrl
Gets owner url.- Returns:
- the owner url
-
getState
Gets state.- Returns:
- the state
-
listColumns
List columns paged iterable.- Returns:
- the paged iterable
-
setBody
Sets body.- Parameters:
body- the body- Throws:
IOException- the io exception
-
setName
Sets name.- Parameters:
name- the name- 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
-
setState
Sets state.- Parameters:
state- the state- Throws:
IOException- the io exception
-
getApiRoute
Gets api route.- Returns:
- the api route
-