mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-17 12:56:08 +00:00
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// Used to merge a pull request (Merge Button).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
|
|
/// </remarks>
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class MergePullRequest
|
|
{
|
|
/// <summary>
|
|
/// The message that will be used for the merge commit (optional)
|
|
/// </summary>
|
|
public string CommitMessage { get; set; }
|
|
|
|
/// <summary>
|
|
/// The SHA that pull request head must match to allow merge (optional)
|
|
/// </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, "Title: '{0}' Message: '{1}', Sha: '{2}' , Squash: '{3}'", CommitTitle, CommitMessage, Sha, Squash);
|
|
}
|
|
}
|
|
}
|
|
}
|