Files
octokit.net/Octokit/Models/Request/NewCommitStatus.cs
2015-12-16 21:23:36 +02:00

44 lines
1.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Used to create a new commit status.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewCommitStatus
{
/// <summary>
/// The state of the commit.
/// </summary>
public CommitState State { get; set; }
/// <summary>
/// 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.
/// </summary>
public Uri TargetUrl { get; set; }
/// <summary>
/// Short description of the status.
/// </summary>
public string Description { get; set; }
/// <summary>
/// A string label to differentiate this status from the status of other systems.
/// </summary>
public string Context { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Description: {0}, Context: {1}", Description, Context);
}
}
}
}