using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to merge a pull request (Merge Button). /// /// /// https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class MergePullRequest { /// /// The message that will be used for the merge commit (optional) /// public string CommitMessage { get; set; } /// /// The SHA that pull request head must match to allow merge (optional) /// public string Sha { get; set; } /// /// The Title for the automatic commit message (optional) /// public string CommitTitle { get; set; } /// /// Commit a single commit to the head branch (optional) /// 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); } } } }