mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
35 lines
952 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|