using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Describes a new deployment status to create. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewDeploymentStatus { /// /// Initializes a new instance of the class. /// /// State of the deployment (Required). public NewDeploymentStatus(DeploymentState deploymentState) { State = deploymentState; } /// /// The state of the status. /// public DeploymentState State { get; private set; } /// /// The target URL to associate with this status. This URL should contain /// output to keep the user updated while the task is running or serve as /// historical information for what happened in the deployment /// public string LogUrl { get; set; } /// /// A short description of the status. /// public string Description { get; set; } /// /// The URL for accessing your environment. /// public string EnvironmentUrl { get; set; } /// /// Indicates if a new inactive status should be added to all non-transient, /// non-production environment deployments with the same repository and environment /// name as the created status's deployment. /// (DEFAULT if not specified: True) /// public bool? AutoInactive { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "State: {0}", State); } } } }