Package de.coho04.githubapi.entities
Klasse GHWorkflowRun
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHWorkflowRun
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Workflow Run.
It provides methods for fetching data about the workflow run such as its id, repository id, head repository id, head branch, and head SHA.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHWorkflowRun(org.json.JSONObject jsonObject) Constructs a new GHWorkflowRun instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the name of the head branch of the workflow run.intReturns the id of the head repository of the workflow run.Returns the SHA of the head commit of the workflow run.intgetId()Returns the id of the workflow run.intReturns the id of the repository of the workflow run.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon 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
-
GHWorkflowRun
public GHWorkflowRun(org.json.JSONObject jsonObject) Constructs a new GHWorkflowRun instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the workflow run data
-
-
Methodendetails
-
getId
public int getId()Returns the id of the workflow run.- Gibt zurück:
- the id of the workflow run
-
getHeadRepositoryId
public int getHeadRepositoryId()Returns the id of the head repository of the workflow run.- Gibt zurück:
- the id of the head repository
-
getRepositoryId
public int getRepositoryId()Returns the id of the repository of the workflow run.- Gibt zurück:
- the id of the repository
-
getHeadBranch
Returns the name of the head branch of the workflow run.- Gibt zurück:
- the name of the head branch
-
getHeadSha
Returns the SHA of the head commit of the workflow run.- Gibt zurück:
- the SHA of the head commit
-