Files
octokit.net/Octokit/Models/Request/CheckSuiteTriggerRequest.cs
Ryan Gribble d166a8c142 Implement changes to Checks API for Annotations models and re-request endpoint (#1857)
* Attempt to handle both old and new annotations models so we support the changes on github.com as well as still support GHE2.14
add Path and AnnotationLevel fields
flag Filename and WarningLevel as deprecated/obsolete
also flag BlobHref as deprecated on NewCheckRunAnnotation
Adjust ctors to handle new and legacy field options

* adjust tests to remove use of obsoleted fields

* fix a couple of other tests using unrelated obsoleted fields

* Mark check suite Request method and request object as obsolete

* Add Rerequest() method to normal and observable clients
Add unit and integration tests

* add StartColumn and EndColumn as optional fields for CheckRunAnnotation response and NewCheckRunAnnotation request

* remove integration tests for Request() method as they no longer work on github.com anyway
2018-09-03 20:52:03 +10:00

30 lines
963 B
C#

using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Request to trigger the creation of a check suite
/// </summary>
[Obsolete("This request has been deprecated in the GitHub Api, however can still be used on GitHub Enterprise 2.14")]
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class CheckSuiteTriggerRequest
{
/// <summary>
/// Request to trigger the creation of a check suite
/// </summary>
/// <param name="headSha">The sha of the head commit (required)</param>
public CheckSuiteTriggerRequest(string headSha)
{
HeadSha = headSha;
}
/// <summary>
/// The sha of the head commit
/// </summary>
public string HeadSha { get; protected set; }
internal virtual string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "HeadSha: {0}", HeadSha);
}
}