public class Github extends TaskClusterRequestHandler
The github service, typically available at github.taskcluster.net, is responsible for publishing pulse messages in response to GitHub events.
This document describes the API end-point for consuming GitHub web hooks
| Modifier and Type | Field and Description |
|---|---|
protected static String |
defaultBaseURL |
| Constructor and Description |
|---|
Github() |
Github(Credentials credentials) |
Github(Credentials credentials,
String baseURL) |
Github(String baseURL) |
Github(String clientId,
String accessToken) |
Github(String clientId,
String accessToken,
String certificate) |
| Modifier and Type | Method and Description |
|---|---|
CallSummary<EmptyPayload,EmptyPayload> |
badge(String owner,
String repo,
String branch)
Checks the status of the latest build of a given branch and returns corresponding badge image.
|
CallSummary<EmptyPayload,Builds> |
builds()
A paginated list of builds that have been run in Taskcluster.
|
CallSummary<EmptyPayload,EmptyPayload> |
githubWebHookConsumer()
Capture a GitHub event and publish it via pulse, if it’s a push, release or pull request.
|
CallSummary<EmptyPayload,IsInstalledFor> |
isInstalledFor(String owner,
String repo)
Checks if the integration has been installed for a given repository of a given organization or user.
|
CallSummary<EmptyPayload,EmptyPayload> |
ping()
Respond without doing anything.
|
apiCall, setBaseURL, uriEncodeprotected static final String defaultBaseURL
public Github(Credentials credentials)
public Github(Credentials credentials, String baseURL)
public Github(String baseURL)
public Github()
public CallSummary<EmptyPayload,EmptyPayload> githubWebHookConsumer() throws APICallFailure
Capture a GitHub event and publish it via pulse, if it’s a push, release or pull request.
APICallFailurepublic CallSummary<EmptyPayload,Builds> builds() throws APICallFailure
A paginated list of builds that have been run in Taskcluster. Can be filtered on various git-specific fields.
APICallFailurepublic CallSummary<EmptyPayload,EmptyPayload> badge(String owner, String repo, String branch) throws APICallFailure
Checks the status of the latest build of a given branch and returns corresponding badge image.
APICallFailurepublic CallSummary<EmptyPayload,IsInstalledFor> isInstalledFor(String owner, String repo) throws APICallFailure
Checks if the integration has been installed for a given repository of a given organization or user.
APICallFailurepublic CallSummary<EmptyPayload,EmptyPayload> ping() throws APICallFailure
Respond without doing anything. This endpoint is used to check that the service is up.
APICallFailureCopyright © 2014–2017 Mozilla. All rights reserved.