GitHubAliases.

GitHubSetMilestoneAsync(ICakeContext, string, string, string, string, int, string, GitHubSetMilestoneSettings) Method

Summary

Sets the Milestone for an Issue or Pull Request.
Assembly
Cake.GitHub.dll
Namespace
Cake.GitHub
Containing Type
GitHubAliases

Syntax

public static Task GitHubSetMilestoneAsync(this ICakeContext context, string userName, string apiToken, string owner, string repository, int number, string milestoneTitle, GitHubSetMilestoneSettings settings = null)

Attributes

Type Description
AsyncStateMachineAttribute
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.
repository string The name of the repository.
number int The number of the Issue or Pull Request to set the Milestone for.
milestoneTitle string The title of the milestone to assign the Issue or Pull Request to. Note that GitHub treats Milestone titles case-sensitive.
settings GitHubSetMilestoneSettings Additional settings for updating the Milestone (optional).

Return Value

Type Description
Task