GitHubAliases.

GitHubStatus(ICakeContext, string, string, string, string, string, GitHubStatusSettings) Method

Summary

Updates the status for a specific build.
Assembly
Cake.GitHub.dll
Namespace
Cake.GitHub
Containing Type
GitHubAliases

Syntax

public static GitHubStatusResult GitHubStatus(this ICakeContext context, string userName, string apiToken, string owner, string repository, string reference, GitHubStatusSettings settings)

Examples

GitHubStatus("user", "apiToken", "cake-contrib", "cake.github", new GitHubStatusSettings
{
    AppId = appId,
    Version = "1.0.160901.1",
    ShortVersion = "1.0-beta2",
    Notes = "Uploaded via continuous integration."
});

Attributes

Type Description
CakeAliasCategoryAttribute
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The Cake context
userName string The user name to use for authentication (pass null when using an access token).
apiToken string The access token or password to use for authentication.
owner string The owner (user or group) of the repository to report the status for.
repository string The name of the repository to report the status for.
reference string The git reference to report the status for.
settings GitHubStatusSettings The status settings.

Return Value

Type Description
GitHubStatusResult