Implement Draft Pull Requests (#2009)

* Add draft PR preview header

* Add Draft property to models

* Update pull requests client and tests to use draft PR accept header

* Update observable pull requests client and tests to use draft PR accept header

* Add integration tests to create and retrieve draft pull requests
This commit is contained in:
Henrik Andersson
2019-09-23 02:38:56 +10:00
committed by Brendan Forster
parent d955d7facd
commit fafbf33b78
8 changed files with 106 additions and 39 deletions
+5
View File
@@ -50,6 +50,11 @@ namespace Octokit
/// Body of the pull request (optional)
/// </summary>
public string Body { get; set; }
/// <summary>
/// Whether the pull request is in a draft state or not (optional)
/// </summary>
public bool? Draft { get; set; }
internal string DebuggerDisplay
{