Package de.coho04.githubapi.builders
Klasse GHIssueBuilder
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.builders.GHIssueBuilder
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
The GHIssueBuilder class is used to build and create GitHub issues.
This class provides methods to set various properties of an issue such as title, body, assignee, milestone, and labels.
It extends the GHBase class and implements the JSONHelper and HttpRequestInterface interfaces.
This class is part of the builder pattern to simplify issue creation on GitHub.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHIssueBuilder(Github github, String url, String title) Constructs a new GHIssueBuilder instance with the specified GitHub instance and title.GHIssueBuilder(Github github, String url, String title, String body) Constructs a new GHIssueBuilder instance with the specified GitHub instance, title, and body. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAdds a label to the issue.Sets the assignee of the issue.create()Creates a new GHIssue instance based on the current state of the builder.getBody()getState()getTitle()Returns the title of the issue.getUrl()voidvoidsetMilestone(GHMilestone milestone) voidSets the title of the issue.org.json.JSONObjectConverts the current state of the builder to a JSONObject.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrlVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
GHIssueBuilder
Constructs a new GHIssueBuilder instance with the specified GitHub instance and title.- Parameter:
github- the GitHub instancetitle- the title of the issue
-
GHIssueBuilder
Constructs a new GHIssueBuilder instance with the specified GitHub instance, title, and body.- Parameter:
github- the GitHub instancetitle- the title of the issuebody- the body of the issue
-
-
Methodendetails
-
setTitle
Sets the title of the issue.- Parameter:
title- the title to set
-
assignee
Sets the assignee of the issue.- Parameter:
user- the username of the assignee- Gibt zurück:
- the current instance of GHIssueBuilder
-
addLabel
Adds a label to the issue.- Parameter:
label- the label to be added to the issue- Gibt zurück:
- the current instance of GHIssueBuilder
-
create
Creates a new GHIssue instance based on the current state of the builder.- Gibt zurück:
- a new GHIssue instance
-
getTitle
Returns the title of the issue.- Gibt zurück:
- the title of the issue
-
getBody
-
setBody
-
setMilestone
-
getGithub
-
getUrl
-
getLabels
-
getMilestone
-
getState
-
getAssignees
-
toJSONObject
public org.json.JSONObject toJSONObject()Converts the current state of the builder to a JSONObject.- Setzt außer Kraft:
toJSONObjectin KlasseGHBase- Gibt zurück:
- a JSONObject representing the current state of the builder
-