mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
37 lines
940 B
C#
37 lines
940 B
C#
using System;
|
|
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; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Title: {0}", Title);
|
|
}
|
|
}
|
|
}
|
|
}
|