Pull-Request-Squash-Commit (#1245)

This commit is contained in:
Sarmad
2016-05-20 13:34:41 +05:00
committed by Brendan Forster
parent 1b51717f8d
commit 3f3930253c
5 changed files with 34 additions and 3 deletions
+11 -1
View File
@@ -22,11 +22,21 @@ namespace Octokit
/// </summary>
public string Sha { get; set; }
/// <summary>
/// The Title for the automatic commit message (optional)
/// </summary>
public string CommitTitle { get; set; }
/// <summary>
/// Commit a single commit to the head branch (optional)
/// </summary>
public bool Squash { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Message: '{0}', Sha: '{1}'", CommitMessage, Sha);
return string.Format(CultureInfo.InvariantCulture, "Title: '{0}' Message: '{1}', Sha: '{2}' , Squash: '{3}'", CommitTitle, CommitMessage, Sha, Squash);
}
}
}