using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Represents the response from an attempt to merge a pull request. /// /// /// Note the request to merge is represented by /// API: https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class PullRequestMerge { /// /// Initializes a new instance of the class. /// public PullRequestMerge() { } public PullRequestMerge(string sha, bool merged, string message) { Sha = sha; Merged = merged; Message = message; } /// /// The sha reference of the commit. /// public string Sha { get; protected set; } /// /// True if merged successfully, otherwise false. /// public bool Merged { get; protected set; } /// /// The message that will be used for the merge commit. /// public string Message { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Sha: {0} Message: {1}", Sha, Message); } } } }