using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Used to create a new commit status.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewCommitStatus
{
///
/// The state of the commit.
///
public CommitState State { get; set; }
///
/// URL associated with this status. GitHub.com displays this URL as a link to allow users to easily see the
/// ‘source’ of the Status. For example, if your Continuous Integration system is posting build status,
/// you would want to provide the deep link for the build output for this specific sha.
///
public string TargetUrl { get; set; }
///
/// Short description of the status.
///
public string Description { get; set; }
///
/// A string label to differentiate this status from the status of other systems.
///
public string Context { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Description: {0}, Context: {1}", Description, Context);
}
}
}
}