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

35 lines
952 B
C#

using System;
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; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Message: '{0}', Sha: '{1}'", CommitMessage, Sha);
}
}
}
}