Package org.kohsuke.github
Class GHCommitStatus
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHCommitStatus
-
public class GHCommitStatus extends GHObject
Represents a status of a commit.- Author:
- Kohsuke Kawaguchi
- See Also:
GHRepository#getLastCommitStatus(String),GHCommit#getLastStatus(),GHRepository#createCommitStatus(String, GHCommitState, String, String)
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
created_at, id, responseHeaderFields, updated_at, url
-
-
Constructor Summary
Constructors Constructor Description GHCommitStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetContext()Gets context.GHUsergetCreator()Gets creator.StringgetDescription()Gets description.URLgetHtmlUrl()Deprecated.This object has no HTML URL.GHCommitStategetState()Gets state.StringgetTargetUrl()The URL that this status is linked to.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toString
-
-
-
-
Method Detail
-
getState
public GHCommitState getState()
Gets state.- Returns:
- the state
-
getTargetUrl
public String getTargetUrl()
The URL that this status is linked to.This is the URL specified when creating a commit status.
- Returns:
- the target url
-
getDescription
public String getDescription()
Gets description.- Returns:
- the description
-
getCreator
public GHUser getCreator() throws IOException
Gets creator.- Returns:
- the creator
- Throws:
IOException- the io exception
-
getContext
public String getContext()
Gets context.- Returns:
- the context
-
getHtmlUrl
public URL getHtmlUrl()
Deprecated.This object has no HTML URL.Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
-