Files
octokit.net/Octokit/Models/Request/PullRequestUpdate.cs
Jordan Brown 82b1b2144f Adds MaintainerCanModify to PullRequest (#1771)
* Adds MaintainerCanModify to PullRequest

* Make MaintainerCanModify nullable

* Tweak MaintainerCanModify doc comment

* Add MaintainerCanModify to NewPullRequest

* Add MaintainerCanModify to PullRequestUpdate

* Update NewPulRequest tests

* Convert tabs to spaces

* Fix PullRequestUpdate and NewPullRequest doc comments

* Revert "Update NewPulRequest tests"

This reverts commit f20dfa7d0efc5ed18b7d622a0eb9b5d1f578f9a5.

* Make MaintainerCanModify fields nullable

* tweak doco comment and make setter public so it can be used
2018-04-23 21:27:44 +10:00

46 lines
1.2 KiB
C#

using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Used to update an existing pull request.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestUpdate
{
/// <summary>
/// Title of the pull request (required)
/// </summary>
public string Title { get; set; }
/// <summary>
/// Whether the pull request is open or closed. The default is <see cref="ItemState.Open"/>.
/// </summary>
public ItemState? State { get; set; }
/// <summary>
/// The body for the pull request. Supports GFM.
/// </summary>
public string Body { get; set; }
/// <summary>
/// The base branch of the pull request.
/// </summary>
public string Base { get; set; }
/// <summary>
/// Whether maintainers of the base repository can push to the HEAD branch.
/// </summary>
public bool? MaintainerCanModify { get; set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Title: {0}", Title);
}
}
}
}