Class GitHubNotificationRequest
java.lang.Object
org.jenkinsci.plugins.github_branch_source.GitHubNotificationRequest
Details of a GitHub status notification to be sent.
One GitHubNotificationRequest represents one notification. A strategy supplies a list of these to request one or more notifications. Notifications are differentiated by their Context label. If two notification requests with the same Context label are provided, one will override the other.
- Since:
- 2.3.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic GitHubNotificationRequest
build
(String context, String url, String message, org.kohsuke.github.GHCommitState state, boolean ignoreError) boolean
Returns the context label to be used for a notificationReturns the message for a notificationorg.kohsuke.github.GHCommitState
getState()
Returns the commit state of a notificationgetUrl()
Returns the URL to be supplied with a notificationint
hashCode()
boolean
Returns whether the notification processor should ignore errors when interacting with GitHubtoString()
-
Method Details
-
build
public static GitHubNotificationRequest build(String context, String url, String message, org.kohsuke.github.GHCommitState state, boolean ignoreError) -
getContext
Returns the context label to be used for a notification- Returns:
- context
- Since:
- 2.3.2
-
getUrl
Returns the URL to be supplied with a notification- Returns:
- url
- Since:
- 2.3.2
-
getMessage
Returns the message for a notification- Returns:
- message
- Since:
- 2.3.2
-
getState
public org.kohsuke.github.GHCommitState getState()Returns the commit state of a notification- Returns:
- state
- Since:
- 2.3.2
-
isIgnoreError
public boolean isIgnoreError()Returns whether the notification processor should ignore errors when interacting with GitHub- Returns:
- ignoreError
- Since:
- 2.3.2
-
toString
-
equals
-
hashCode
public int hashCode()
-